Skip to content

Commit

Permalink
Use earlier Python for earlier numpy in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Apr 8, 2024
1 parent d62c1c3 commit d8e2abd
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,26 @@ jobs:

strategy:
matrix:
pint-version:
version:
# Force specific version of pint
- "==0.11 'numpy < 1.23'" # Earliest shown in pyproject.toml
- "==0.17"
- "==0.18"
- "==0.19.1"
# Earliest shown in pyproject.toml
- { python: "3.10", pint: "==0.11 'numpy < 1.23'" }
- { python: "3.x", pint: "==0.17" }
- { python: "3.x", pint: "==0.18" }
- { python: "3.x", pint: "==0.19.1" }
# No change, i.e. latest
- ""
- { python: "3.x", pint: "" }

fail-fast: false

name: pint${{ matrix.pint-version }}
name: pint${{ matrix.version.pint }}

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.x"
python-version: ${{ matrix.version.python }}
cache: pip
cache-dependency-path: "**/pyproject.toml"

Expand All @@ -41,7 +42,7 @@ jobs:
python -m pip install --upgrade pip
pip install .[tests]
# Force a specific version of pint and perhaps other deps
pip install pint${{ matrix.pint-version }}
pip install pint${{ matrix.version.pint }}
- name: Test
run: |
Expand Down

0 comments on commit d8e2abd

Please sign in to comment.