Skip to content

Commit

Permalink
Merge pull request #128 from Turbo87/chore/update-deps
Browse files Browse the repository at this point in the history
chore: update dependencies and test matrix
  • Loading branch information
bartvanandel authored Dec 15, 2024
2 parents 78ee2b9 + d6a59dc commit 6424378
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 11 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,23 @@ jobs:
fail-fast: true
matrix:
python-version:
- "3.13"
- "3.12"
- "3.11"
- "3.10"
- "3.9"
- "3.8"
numpy:
- true
numpy-version:
- false
- "1.x"
- "2.x"
exclude:
- python-version: "3.13"
numpy-version: "1.x"
- python-version: "3.8"
numpy-version: "2.x"

name: "Tests (Python v${{ matrix.python-version }}, NumPy: ${{ matrix.numpy }})"
name: "Tests (Python v${{ matrix.python-version }}, NumPy: ${{ matrix.numpy-version }})"
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
Expand All @@ -37,8 +44,8 @@ jobs:

- run: pip install -r requirements.txt

- run: pip install -r numpy-requirements.txt
if: matrix.numpy == true
- run: pip install -r numpy-${{ matrix.numpy-version }}-requirements.txt
if: matrix.numpy-version != false

- run: pytest -v --cov=utm --color=yes

Expand All @@ -53,11 +60,11 @@ jobs:

- uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.13"

- run: python setup.py sdist

- uses: pypa/gh-action-pypi-publish@v1.10.3
- uses: pypa/gh-action-pypi-publish@v1.12.3
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
2 changes: 2 additions & 0 deletions numpy-1.x-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
numpy==1.24.4; python_version < '3.9'
numpy==1.26.4; python_version >= '3.9' and python_version < '3.13'
3 changes: 3 additions & 0 deletions numpy-2.x-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
numpy==2.0.0; python_version >= '3.9' and python_version < '3.10'
numpy==2.1.0; python_version >= '3.10' and python_version < '3.13'
numpy==2.2.0; python_version >= '3.13'
2 changes: 0 additions & 2 deletions numpy-requirements.txt

This file was deleted.

5 changes: 3 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
pytest==8.3.3
pytest-cov==5.0.0
pytest==8.3.4
pytest-cov==5.0.0; python_version < '3.9'
pytest-cov==6.0.0; python_version >= '3.9'

0 comments on commit 6424378

Please sign in to comment.