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 tests, run tests in CI #64

Merged
merged 37 commits into from
Jun 20, 2023
Merged

Fix tests, run tests in CI #64

merged 37 commits into from
Jun 20, 2023

Conversation

woodruffw
Copy link
Member

@woodruffw woodruffw commented Jun 13, 2023

Closes #60.

Closes #55.

Closes #58.

Closes #32.

@woodruffw woodruffw self-assigned this Jun 13, 2023
These are seemingly intentionally incompatible with pytest.
Comment on lines 31 to 34
class TestSysModules(CurrentVersionBase):
# class TestSysModules(CurrentVersionBase):
# # This relies on invocation in a clean python environment using unittest
# # not using pytest.
Copy link
Member

Choose a reason for hiding this comment

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

I think I'd prefer to just remove these rather than comment them out if we're not going to be able to make them functional in this PR.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep, I'm still messing around here -- I'm currently seeing whether it's feasible to update the older lists in CI, and I'll remove tests depending on how that pans out 🙂

Copy link
Member Author

Choose a reason for hiding this comment

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

Done; I've rewritten the tests entirely (and enforced 100% coverage).

@woodruffw
Copy link
Member Author

The automation here opened up #65 and #66, which should probably be merged first so that I can close the loop and fix the tests on all supported Python versions 🙂

@woodruffw
Copy link
Member Author

Okay, this should be good to go. To summarize:

  • The CI now runs and passes on the versions of Python supported by this library (3.7+)
  • The unit tests now enforce 100% test coverage and have been mostly deleted/rewritten
  • There's a new listgen.yml workflow that keeps the version lists up to date (currently only 3.7+, but additional strategies could possibly be added for even older versions)

@woodruffw woodruffw requested a review from di June 16, 2023 01:36
Comment on lines +32 to +40
# lint:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v4
# with:
# python-version: "3.10"
# - name: lint
# run: make lint INSTALL_EXTRA=lint
Copy link
Member Author

Choose a reason for hiding this comment

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

NB: Intentionally not enabled; will do in a separate PR.

@woodruffw woodruffw mentioned this pull request Jun 16, 2023
@woodruffw woodruffw added this to the 0.9.0 milestone Jun 19, 2023
Copy link
Member

@miketheman miketheman left a comment

Choose a reason for hiding this comment

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

Reviewed in Conventional Comments style. Let me know if any don't make sense!

.github/workflows/listgen.yml Outdated Show resolved Hide resolved
.github/workflows/listgen.yml Show resolved Hide resolved
tests/test_base.py Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants