Skip to content

Commit

Permalink
setup env matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
diehlbw committed May 28, 2024
1 parent c98a0ad commit 4869498
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,37 @@ jobs:
run: |
python -m build
python -m twine check dist/*
test-versions:
# Limit matrix to after base is passing
needs: [test-coverage, linting, test-packaging]
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
os:
- ubuntu-latest
- windows-latest
- macos-latest
include:
- experimental: false
# Install is not robust in 3.12
- python-version: "3.12"
experimental: true

name: Test python-${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -e .[dev,audit]
- name: Run tests
run: |
pytest

0 comments on commit 4869498

Please sign in to comment.