From 48694989bcc07e23d5d32913a6a3d55fdb58a223 Mon Sep 17 00:00:00 2001 From: Ben Diehl Date: Tue, 28 May 2024 12:11:55 +0000 Subject: [PATCH] setup env matrix --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 526e2b1..497daa5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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