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

Use pytest 8 in CI #1822

Merged
merged 21 commits into from
Jan 21, 2025
Merged

Use pytest 8 in CI #1822

merged 21 commits into from
Jan 21, 2025

Conversation

mattwthompson
Copy link
Member

Copy link

codecov bot commented Feb 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.08%. Comparing base (9b1ab19) to head (05c2fc2).
Report is 1 commits behind head on main.

Additional details and impacted files

@mattwthompson mattwthompson marked this pull request as ready for review February 5, 2024 18:20
@mattwthompson
Copy link
Member Author

Ha, I've gotten this error before but in a position where it didn't need to be fixed

=========================== short test summary info ============================
FAILED openff/toolkit/_tests/test_forcefield.py::TestForceField::test_load_bad_filelike_object - TypeError: argument of type 'NoneType' is not iterable
FAILED openff/toolkit/_tests/test_forcefield.py::TestForceField::test_do_not_load_in_child_dir - TypeError: argument of type 'NoneType' is not iterable
FAILED openff/toolkit/_tests/test_forcefield.py::TestForceField::test_load_bad_bytes - TypeError: argument of type 'NoneType' is not iterable
FAILED openff/toolkit/_tests/test_forcefield.py::TestForceField::test_load_bad_string - TypeError: argument of type 'NoneType' is not iterable

@mattwthompson mattwthompson force-pushed the pytest-8 branch 2 times, most recently from 5a1b105 to 8fc7d6e Compare February 6, 2024 18:25
@mattwthompson mattwthompson marked this pull request as draft February 6, 2024 19:01
@mattwthompson
Copy link
Member Author

mattwthompson commented Feb 15, 2024

Splitting off some more discrete ideas which might be nice to have in the installed package before this works nicely, starting with

@mattwthompson mattwthompson changed the title Allow pytest 8 Allow pytest 8 in CI Jan 14, 2025
@mattwthompson mattwthompson changed the title Allow pytest 8 in CI Use pytest 8 in CI Jan 14, 2025
@mattwthompson mattwthompson marked this pull request as ready for review January 15, 2025 20:49
Copy link
Member

@j-wags j-wags left a comment

Choose a reason for hiding this comment

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

Thanks, this was clearly a ton of work all over the codebase and I really appreciate you hunting it all down. However in the current state I can't tell what's a temporary patch to get CI passing vs. what would actually be committed. Now that I see the green CI on this PR, could you modify it to be in its final state and update the PR text with any major subsequent steps that you'd plan to take after the review (otherwise I can't tell what's a temporary patch vs. a genuine oversight).

.github/workflows/conda.yml Outdated Show resolved Hide resolved
openff/toolkit/_tests/test_links.py Show resolved Hide resolved
Comment on lines 52 to 55
openff-toolkit-examples
smirnoff-plugins=2024
pytest-xdist
pytest-rerunfailures
Copy link
Member

Choose a reason for hiding this comment

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

(blocking) Could you expand on the reasoning for not putting these in conda_oe.yaml? Especially with version pins this seems like something that may confuse us in the future. If these are outside of that file intentionally, it'd be good to leave a comment explaining why.

Copy link
Member Author

Choose a reason for hiding this comment

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

I wanted to drop that file but instead I'm just reverting all of the "conda" tests

Comment on lines 75 to 77
git fetch --tags
git checkout tags/$LATEST_TAG
git log -1 | cat
Copy link
Member

Choose a reason for hiding this comment

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

(blocking) This line seems essential to ensuring that the last release is being tested against its own tests, rather than the tests currently on main. Could you clarify?

Copy link
Member Author

Choose a reason for hiding this comment

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

As above

Copy link
Member

@j-wags j-wags left a comment

Choose a reason for hiding this comment

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

Awesome, thanks for all the hard work and for iterating on this @mattwthompson. Please update the releasenotes before you merge!

@mattwthompson mattwthompson merged commit 74cfe94 into main Jan 21, 2025
13 checks passed
@mattwthompson mattwthompson deleted the pytest-8 branch January 21, 2025 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants