-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dependabot config to manage dependency versions (#1439)
Rather than us having to manually check compatible versions and update things accordingly, this PR pins the maximum versions of our dependencies to their current version, and enables githubs [dependabot](https://docs.github.com/en/code-security/getting-started/dependabot-quickstart-guide) to regularly update the requirements file. Right now its set to check for new versions every monday and automatically opens a PR to update `requirements.txt` if new versions are available. This will then trigger our regular CI so we can see if the new version works correctly, and make any necessary fixes if not before merging. Note this only pins the main requirements, not dev-requirements, which I figured we don't need to keep up to date as rigorously so we can manage that ourselves.
- Loading branch information
Showing
12 changed files
with
53 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "pip" | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "weekly" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,7 @@ jobs: | |
run: | | ||
pwd | ||
lscpu | ||
pip list | ||
python -m pytest -m unit \ | ||
--durations=0 \ | ||
--mpl \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,4 +72,5 @@ jobs: | |
run: | | ||
pwd | ||
lscpu | ||
pip list | ||
python -m pytest tests/test_plotting.py --durations=0 --mpl --maxfail=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,7 @@ jobs: | |
run: | | ||
pwd | ||
lscpu | ||
pip list | ||
python -m pytest -v -m unit \ | ||
--durations=0 \ | ||
--splits 4 \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
jax >= 0.4.24, <= 0.4.35 | ||
colorama | ||
diffrax >= 0.4.1 | ||
h5py >= 3.0.0, < 4.0 | ||
interpax >= 0.3.3 | ||
matplotlib >= 3.5.0, < 4.0.0 | ||
mpmath >= 1.0.0, < 2.0 | ||
netcdf4 >= 1.5.4, < 2.0 | ||
numpy >= 1.20.0 | ||
nvgpu | ||
orthax | ||
plotly >= 5.16, < 6.0 | ||
psutil | ||
pylatexenc >= 2.0, < 3.0 | ||
quadax >= 0.2.2 | ||
scikit-image | ||
scipy >= 1.7.0 | ||
termcolor | ||
colorama <= 0.4.6 | ||
diffrax >= 0.4.1, <= 0.6.0 | ||
h5py >= 3.0.0, <= 3.12.1 | ||
interpax >= 0.3.3, <= 0.3.4 | ||
matplotlib >= 3.5.0, <= 3.9.3 | ||
mpmath >= 1.0.0, <= 1.3.0 | ||
netcdf4 >= 1.5.4, <= 1.7.2 | ||
numpy >= 1.20.0, <= 2.1.3 | ||
nvgpu <= 0.10.0 | ||
orthax <= 0.2.1 | ||
plotly >= 5.16, <= 5.24.1 | ||
psutil <= 6.1.0 | ||
pylatexenc >= 2.0, <= 2.10 | ||
quadax >= 0.2.2, <= 0.2.4 | ||
scikit-image <= 0.24.0 | ||
scipy >= 1.7.0, <= 1.14.1 | ||
termcolor <= 2.5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
name: desc-env | ||
dependencies: | ||
# standard install | ||
- colorama | ||
- diffrax >= 0.4.1 | ||
- h5py >= 3.0.0, < 4.0 | ||
- matplotlib >= 3.5.0, < 4.0.0 | ||
- mpmath >= 1.0.0, < 2.0 | ||
- netcdf4 >= 1.5.4, < 2.0 | ||
- numpy >= 1.20.0 | ||
- psutil | ||
- scipy >= 1.7.0 | ||
- termcolor | ||
- colorama <= 0.4.6 | ||
- diffrax >= 0.4.1, <= 0.6.0 | ||
- h5py >= 3.0.0, <= 3.12.1 | ||
- matplotlib >= 3.5.0, <= 3.9.3 | ||
- mpmath >= 1.0.0, <= 1.3.0 | ||
- netcdf4 >= 1.5.4, <= 1.7.2 | ||
- numpy >= 1.20.0, <= 2.1.3 | ||
- psutil <= 6.1.0 | ||
- scipy >= 1.7.0, <= 1.14.1 | ||
- termcolor <= 2.5.0 | ||
- pip | ||
- pip: | ||
# Conda only parses a single list of pip requirements. | ||
# If two pip lists are given, all but the last list is skipped. | ||
- jax >= 0.4.24, <= 0.4.35 | ||
- interpax >= 0.3.3 | ||
- nvgpu | ||
- orthax | ||
- plotly >= 5.16, < 6.0 | ||
- pylatexenc >= 2.0, < 3.0 | ||
- quadax >= 0.2.2 | ||
- scikit-image | ||
- interpax >= 0.3.3, <= 0.3.4 | ||
- nvgpu <= 0.10.0 | ||
- orthax <= 0.2.1 | ||
- plotly >= 5.16, <= 5.24.1 | ||
- pylatexenc >= 2.0, <= 2.10 | ||
- quadax >= 0.2.2, <= 0.2.4 | ||
- scikit-image <= 0.24.0 |