[pre-commit.ci] pre-commit autoupdate #163
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test and build | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ${{matrix.os}} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-latest, ubuntu-latest, macos-latest] | |
python-version: ["3.12.3"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install poetry | |
run: pipx install poetry==1.8.4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{matrix.python-version}} | |
cache: poetry | |
- name: Show Python Version | |
run: python --version | |
- name: Install system dependencies in Linux | |
if: runner.os == 'Linux' | |
shell: bash | |
run: | | |
sudo apt update | |
# Without this, PySide6 gives an ImportError | |
sudo apt install libegl1 | |
- name: Install dependencies | |
run: poetry install | |
- name: Debug Poetry Environment | |
run: poetry env list | |
- name: Run tests | |
run: poetry run pytest |