Skip to content
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

Merged
merged 10 commits into from
Jan 5, 2021

Conversation

MarcoGorelli
Copy link
Contributor

@MarcoGorelli MarcoGorelli commented Dec 23, 2020

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 per requirements.txt) to make sure that PyMC3 actually works with those versions


while I was here, this closes #4341

@MarcoGorelli MarcoGorelli force-pushed the fixup-ci branch 6 times, most recently from 51232a5 to 3d8a3c1 Compare December 23, 2020 10:36
@@ -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$
Copy link
Contributor Author

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

@@ -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]
Copy link
Contributor Author

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

Copy link
Contributor Author

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

@MarcoGorelli MarcoGorelli force-pushed the fixup-ci branch 2 times, most recently from 3e659c6 to bd68baf Compare December 23, 2020 10:44
@codecov
Copy link

codecov bot commented Dec 31, 2020

Codecov Report

Merging #4374 (3d2ad33) into master (d871b80) will decrease coverage by 0.28%.
The diff coverage is n/a.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
pymc3/plots/__init__.py 50.00% <0.00%> (-3.07%) ⬇️
pymc3/distributions/discrete.py 92.75% <0.00%> (-2.25%) ⬇️
pymc3/step_methods/hmc/integration.py 89.79% <0.00%> (-2.05%) ⬇️
pymc3/variational/approximations.py 80.19% <0.00%> (-1.74%) ⬇️
pymc3/step_methods/gibbs.py 40.00% <0.00%> (-1.47%) ⬇️
pymc3/tests/helpers.py 60.34% <0.00%> (-1.33%) ⬇️
pymc3/variational/opvi.py 85.27% <0.00%> (-1.25%) ⬇️
pymc3/tests/backend_fixtures.py 78.97% <0.00%> (-0.64%) ⬇️
pymc3/variational/flows.py 93.60% <0.00%> (-0.49%) ⬇️
pymc3/distributions/continuous.py 93.90% <0.00%> (-0.48%) ⬇️
... and 32 more

@MarcoGorelli MarcoGorelli marked this pull request as ready for review December 31, 2020 14:47
@MarcoGorelli MarcoGorelli requested a review from twiecki January 5, 2021 14:40
@twiecki twiecki merged commit 34b05d8 into pymc-devs:master Jan 5, 2021
@twiecki
Copy link
Member

twiecki commented Jan 5, 2021

Thanks @MarcoGorelli!

@MarcoGorelli MarcoGorelli deleted the fixup-ci branch January 5, 2021 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

setup.py says we use nose for testing, but we don't
2 participants