Skip to content
This repository has been archived by the owner on Nov 2, 2024. It is now read-only.

Fix test

Fix test #2

name: Build Packages and Test
on:
push:
branches:
- main
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
pull_request:
branches:
- main
workflow_dispatch:
jobs:
test-and-build:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Print info
run: |
echo github.ref_type is ${{ github.ref_type }}
echo github.event_name is ${{ github.event_name }}
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Setup Poetry
uses: Gr1N/setup-poetry@v8
- name: Install package
run: poetry install --with=dev
- name: Setup Headless Display
uses: pyvista/setup-headless-display-action@v2
with:
qt: true
- name: Run test
run: poetry run pytest --cov=qdamakuengine
- name: Build wheel
run: poetry build
- name: Release
uses: softprops/action-gh-release@v1
if: github.ref_type == 'tag'
with:
files: dist/*
generate_release_notes: true