Enable Linux compatibility with dependency changes and improved dev t… #31
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
--- | |
# used for running tests | |
name: tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
pre_commit_checks: | |
runs-on: ubuntu-22.04 | |
steps: | |
# checks out the repo | |
- uses: actions/checkout@v4 | |
# run pre-commit | |
- name: Python setup | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Install the latest version of uv | |
uses: astral-sh/setup-uv@v5 | |
- name: Display configuration for Ubuntu | |
uses: pyvista/setup-headless-display-action@v3 | |
with: | |
qt: true | |
- uses: pre-commit/[email protected] | |
# run pre-commit ci lite for automated fixes | |
- uses: pre-commit-ci/[email protected] | |
if: ${{ !cancelled() }} | |
run_tests: | |
strategy: | |
matrix: | |
python_version: ["3.11", "3.12"] | |
os: [ubuntu-22.04, macos-14] | |
runs-on: ${{ matrix.os }} | |
env: | |
OS: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Python setup | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python_version }} | |
- name: Display configuration for Ubuntu | |
if: ${{ matrix.os == 'ubuntu-22.04' }} | |
uses: pyvista/setup-headless-display-action@v3 | |
with: | |
qt: true | |
- name: Install the latest version of uv | |
uses: astral-sh/setup-uv@v5 | |
- name: Run pytest | |
run: uv run --frozen pytest |