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

Fix CI (for latest pytest version) #2015

Closed
wants to merge 2 commits into from

Conversation

Jasha10
Copy link
Collaborator

@Jasha10 Jasha10 commented Feb 4, 2022

A new pytest release came out earlier today.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 4, 2022
@Jasha10 Jasha10 marked this pull request as draft February 4, 2022 18:53
@Jasha10
Copy link
Collaborator Author

Jasha10 commented Feb 4, 2022

The CI failure on commit b9b3b2f is coming from our jupyter notebook test. I've opened an issue against the nbval repository (linked below). For now I'll try pinning pytest...

computationalmodelling/nbval#180

@Jasha10 Jasha10 marked this pull request as ready for review February 5, 2022 00:24
@jieru-hu jieru-hu self-requested a review February 5, 2022 00:51
Copy link
Contributor

@jieru-hu jieru-hu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! one minor comment :)

Comment on lines 379 to +380
_upgrade_basic(session)
_install_pytest(session)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: since we need to always install pytest along with the upgrade_basic, could we merge them into one method, something like install_basic?

Copy link
Collaborator Author

@Jasha10 Jasha10 Feb 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had the same thought, but it turns out that the lint and lint_plugins nox sessions do not require installing pytest (but they do still use upgrade_basic).

Copy link
Collaborator Author

@Jasha10 Jasha10 Feb 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have just opened PR #2016 which only pins pytest for the jupyter notebook session. I'm thinking of closing this PR in favor of that one. What do you think?

(One benefit of not pinning pytest is that the new pytest version should allow us to move forward with python3.10 support, which is currently blocked).

@Jasha10 Jasha10 mentioned this pull request Feb 5, 2022
@Jasha10 Jasha10 closed this in #2016 Feb 6, 2022
@Jasha10 Jasha10 deleted the fix-ci-pytest branch February 8, 2022 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants