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 individual GHA workflows to run tests (pytest) and check code format (black) #38

Merged

Conversation

eecavanna
Copy link
Collaborator

@eecavanna eecavanna commented Jan 27, 2025

On this branch, I extracted the test-related step from the existing GHA workflow and put it into a new GHA workflow, which runs in more scenarios (not just when we want to publish the package to PyPI).

I also created a third GHA workflow, which runs black in "check" mode; meaning, it does not actually reformat the code—it just checks its formatting and fails if the code does not conform.

Finally, I updated a test that was failing only when run via GHA, so that it would pass there. The fix had to do with configuring Rich to not generated colorized output for that test.

@eecavanna eecavanna self-assigned this Jan 27, 2025
@eecavanna eecavanna linked an issue Jan 27, 2025 that may be closed by this pull request
@eecavanna eecavanna changed the title Extract pytest step into own GHA workflow and add workflow that runs black --check Implement individual GHA workflows for running tests (pytest) and checking code format (black) Jan 27, 2025
@eecavanna eecavanna changed the title Implement individual GHA workflows for running tests (pytest) and checking code format (black) Use individual GHA workflows to run tests (pytest) and check code format (black) Jan 27, 2025
@eecavanna eecavanna merged commit 2d2953c into main Jan 27, 2025
4 checks passed
@eecavanna eecavanna deleted the 37-configure-gha-to-run-black-and-pytest-in-more-scenarios branch January 27, 2025 08:50
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.

Configure GHA to run black and pytest in more scenarios
1 participant