Skip to content

Commit

Permalink
ci: Update requirements and add oldest requirements.
Browse files Browse the repository at this point in the history
  • Loading branch information
b-butler committed Jan 10, 2024
1 parent 6a65777 commit ec79d0f
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 13 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci-oldest-reqs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
click==7.1.2
coverage==5.3.1
filelock==3.0.0
h5py==2.10.0
numpy==1.19.0
packaging==15.0
pandas==1.0.0
pymongo==3.10.0
pytest==6.2.1
pytest-cov==2.10.1
pytest-xdist==2.5.0
tables==3.6.1
tqdm==4.10.0
16 changes: 10 additions & 6 deletions .github/workflows/run-pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@ jobs:
# Defaults to newest dependencies
- dependencies: 'newest'
# Other tests
# TODO: Add oldest supported dependencies to test
# - python: '3.8'
# dependencies: 'oldest'
# - os: 'macos-latest'
# python: '3.8'
# dependencies: 'oldest'
- python: '3.8'
dependencies: 'oldest'
- os: 'macos-latest'
python: '3.8'
dependencies: 'oldest'
- os: 'macos-latest'
python: '3.12'
dependencies: 'newest'
Expand All @@ -52,6 +51,11 @@ jobs:
pip install -r requirements/requirements-test.txt
pip install -r requirements/requirements-data.txt
if: ${{ matrix.dependencies == 'newest' }}
- name: Install oldest dependencies
run: |
pip install -r .github/workflows/ci-oldest-reqs.txt
pip install -r requirements/requirements-data.txt
if: ${{ matrix.dependencies == 'newest' }}
- name: Install numba (if available)
run: |
pip install -r requirements/requirements-jit.txt
Expand Down
16 changes: 9 additions & 7 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
bottleneck
freud-analysis
kneed
numpy
ruptures
scikit-learn
pandas
bottleneck == 1.3
freud-analysis == 2.5
kneed == 0.8
numpy == 1.19.0
ruptures == 1.1.1
scikit-learn == 0.24.0
pandas == 1.0.0
pytest == 6.2.1
pytest-cov == 2.10.1
1 change: 1 addition & 0 deletions requirements/requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
hypothesis
pytest
pytest-cov

0 comments on commit ec79d0f

Please sign in to comment.