Skip to content

Commit

Permalink
Add CI run running on oldest supported versions of core dependencie
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnoe committed Sep 13, 2024
1 parent 4914dd4 commit 71a2b27
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
- uses: pre-commit/action@v3.0.1
with:
extra_args: --files $(git diff origin/main --name-only)

tests:
runs-on: ${{ matrix.os }}
needs: lint
Expand All @@ -42,6 +43,7 @@ jobs:
- os: ubuntu-latest
python-version: "3.10"
install-method: mamba
extra-args: ["oldest-deps"]

- os: ubuntu-latest
python-version: "3.10"
Expand Down Expand Up @@ -127,7 +129,11 @@ jobs:
pip install -e .[tests]
pip install ./test_plugin
pip freeze
pip list
- if: contains(matrix.extra-args, 'oldest-deps') && contains(github.event.pull_request.labels.*.name, 'documentation-only') == false
run: |
micromamba install -n cta-dev -y numpy=1.24 numba=0.57 scipy=1.10 astropy=5.3 matplotlib=3.6
micromamba list -n cta-dev
- name: ctapipe-info
if: contains(github.event.pull_request.labels.*.name, 'documentation-only') == false
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dependencies:
- jupyter
- matplotlib
- numba>=0.56
- numpy>=1.22
- numpy>=1.24
- numpydoc
- pandas
- pypandoc
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ dependencies = [
"eventio >=1.9.1, <2.0.0a0",
"iminuit >=2",
"joblib",
"matplotlib ~=3.0",
"numba >=0.56",
"numpy >=1.23,<3.0.0a0",
"matplotlib ~=3.5",
"numba >=0.57",
"numpy >=1.24,<3.0.0a0",
"psutil",
"pyyaml >=5.1",
"requests",
"scikit-learn !=1.4.0", # 1.4.0 breaks with astropy tables, before and after works
"scipy ~=1.2",
"scipy ~=1.10",
"tables ~=3.4",
"tqdm >=4.32",
"traitlets ~=5.6",
Expand Down

0 comments on commit 71a2b27

Please sign in to comment.