Skip to content

Commit

Permalink
Unpin numpy from dependencies and test multiple versions in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos committed Sep 13, 2024
1 parent 3204988 commit e6519b9
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 36 deletions.
51 changes: 18 additions & 33 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,37 +13,20 @@ jobs:
OS: Linux
strategy:
matrix:
include:
- python-version: "3.7"
python-release: v3.7
python-impl: CPython
- python-version: "3.8"
python-release: v3.8
python-impl: CPython
- python-version: "3.9"
python-release: v3.9
python-impl: CPython
- python-version: "3.10"
python-release: v3.10
python-impl: CPython
- python-version: "3.11"
python-release: v3.11
python-impl: CPython
- python-version: "3.12"
python-release: v3.12
python-impl: CPython
- python-version: pypy-3.7
python-release: v3.7
python-impl: PyPy
- python-version: pypy-3.8
python-release: v3.8
python-impl: PyPy
- python-version: pypy-3.9
python-release: v3.9
python-impl: PyPy
- python-version: pypy-3.10
python-release: v3.10
python-impl: PyPy
python-version:
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- 'pypy-3.7'
- 'pypy-3.8'
- 'pypy-3.9'
- 'pypy-3.10'
numpy-version:
- '1.0'
- '2.0'
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -55,14 +38,16 @@ jobs:
run: python -m pip install -U pip wheel setuptools
- name: Install CI requirements
run: python -m pip install -r .github/workflows/requirements.txt
- name: Install NumPy ${{ matrix.numpy-version }}
run: python -m pip install -U 'numpy ~=${{ matrix.numpy-version }}' --prefer-binary
- name: Install test requirements
run: python -m pip install -r tests/requirements.txt --prefer-binary
- name: Test with coverage
run: python -m coverage run -m unittest discover -vv
- name: Upload to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
flags: ${{ matrix.python-impl }},${{ matrix.python-release }}
flags: ${{ matrix.python-version }}
name: test-python-${{ matrix.python-version }}
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ test_suite = tests
include_package_data = true
setup_requires = setuptools >=46.4
install_requires =
numpy ~=1.0
numpy
importlib-resources >=1.3 ; python_version < '3.9'

[options.package_data]
Expand Down
3 changes: 1 addition & 2 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
numpy
biopython
biopython

0 comments on commit e6519b9

Please sign in to comment.