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

Improve support for local testing. #281

Merged
merged 2 commits into from
Jan 25, 2024
Merged

Conversation

sodul
Copy link
Collaborator

@sodul sodul commented Jan 22, 2024

Improve setup.cfg to perform local dev installs more simply and add a make target that uses vanilla python containers of supported versions for local development.

The new make test-on-containers runs under 2m on a M1 Pro machine and runs our tests against python 3.8, 3.9, 3.10, 3.11 and 3.12.0.

- Add dev dependencies to setup.cfg through requirements-dev.txt, to simpl
- Add support to test python versions locally with docker.
@make test-installed
make test-versions
make test-coverage
@# test-coverage needs to be last in deps, don't clean after it runs!

test-on-containers: clean-silent
@# Run the tests on pristine containers to isolate us from the local environment.
@for version in 3.8 3.9 3.10 3.11 3.12.0; do \
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I specify 3.12.0 for now as we are still incompatible with 3.12.1. I want to make testing easier before pushing the compatibility fixes for 3.12.1.

@sodul sodul requested a review from CleanCut January 23, 2024 00:14
@sodul sodul added this to the 4.0.1 milestone Jan 24, 2024
@sodul sodul self-assigned this Jan 24, 2024
Copy link
Collaborator

@IanFoertsch-clumio IanFoertsch-clumio left a comment

Choose a reason for hiding this comment

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

👍 LGTM

@sodul sodul merged commit 042e32e into CleanCut:main Jan 25, 2024
24 checks passed
@sodul sodul deleted the local-testing branch January 25, 2024 22:29
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.

None yet

2 participants