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

Bump Gr1N/setup-poetry from 8 to 9 #24

Bump Gr1N/setup-poetry from 8 to 9

Bump Gr1N/setup-poetry from 8 to 9 #24

Workflow file for this run

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@v5
with:
python-version: '3.11'
- name: Setup Poetry
uses: Gr1N/setup-poetry@v9
- name: Install package
run: poetry install --with=dev
- name: Setup QT Libs
uses: tlambert03/setup-qt-libs@v1
- name: Setup Headless Display
uses: pyvista/setup-headless-display-action@v2
with:
qt: true
pyvista: false
- name: Run test
env:
QT_DEBUG_PLUGINS: '1'
run: poetry run pytest --cov=qdamakuengine -s -vvvv
- 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