-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test on oldest supported versions during end-to-end CI #4374
Conversation
51232a5
to
3d8a3c1
Compare
.pre-commit-config.yaml
Outdated
@@ -51,7 +51,7 @@ repos: | |||
- id: pip-from-conda | |||
additional_dependencies: [pyyaml] | |||
entry: python scripts/generate_pip_deps_from_conda.py | |||
files: ^conda-envs/ | |||
files: ^conda-envs/environment-dev-py37\.yml$ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's probably a good idea to have some CI jobs run with different versions of packages, to check PyMC3 works both with the oldest and with the newest versions of its dependencies. So, requirements-dev.txt now has to be generated from just one yml file
.pre-commit-config.yaml
Outdated
@@ -42,7 +42,7 @@ repos: | |||
name: Check no tests are ignored | |||
pass_filenames: false | |||
- id: conda-env-sort | |||
additional_dependencies: [pyyaml] | |||
additional_dependencies: [ruamel.yaml] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ruamel.yaml
preserves comments (which pyyaml
destroys) so switching to that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will do this in a separate PR
3e659c6
to
bd68baf
Compare
bd68baf
to
841d45e
Compare
Codecov Report
@@ Coverage Diff @@
## master #4374 +/- ##
==========================================
- Coverage 88.09% 87.80% -0.29%
==========================================
Files 88 88
Lines 14538 14305 -233
==========================================
- Hits 12807 12561 -246
- Misses 1731 1744 +13
|
Thanks @MarcoGorelli! |
pytest.yml
runs all the tests. It's probably a good idea, for that job, to pin all library versions to the earliest possible supported version (as perrequirements.txt
) to make sure that PyMC3 actually works with those versionswhile I was here, this closes #4341