Skip to content

Modernize CI workflow #169

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

Merged
merged 3 commits into from
Oct 23, 2023
Merged

Conversation

nicoddemus
Copy link
Member

@nicoddemus nicoddemus commented Oct 9, 2023

This PR uses the same workflow we have been using in other projects under pytest-dev:

  • Separete test and deploy workflows.
  • test: build package once and test it in the supported environments, as opposed to generate one package for each environment.
  • deploy: a manually triggered action, which once successful will tag the repository and create a GH release.
  • Adopt src layout: this makes it possible to create the package and test it in different jobs on CI, and ensures we are testing the actual package.

Fixes #166

@nicoddemus nicoddemus force-pushed the modernize-ci branch 2 times, most recently from 7f6038f to f0be165 Compare October 9, 2023 15:10
This PR uses the same workflow we have been using in other projects under pytest-dev:

* Separete `test` and `deploy` workflows.
* `test`: build package once and test it in the supported environments, as opposed to generate one package for each environment.
* `deploy`: a manually triggered action, which once successful will tag the repository and create a GH release.
@nicoddemus nicoddemus force-pushed the modernize-ci branch 3 times, most recently from 1ce2d78 to 41bc596 Compare October 9, 2023 15:28
This allows us to confidently test the package created by a separate job on CI.
Unfortunately those tests are skipped on Windows, which skews code coverage stats.
@nicoddemus nicoddemus mentioned this pull request Oct 9, 2023
5 tasks
Copy link

@foarsitter foarsitter left a comment

Choose a reason for hiding this comment

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

Didn't test locally but looks good to me.

@nicoddemus
Copy link
Member Author

Thanks @foarsitter.

@northernSage gentle ping -- please let me know in case you are swamped and won't have the time to handle the recent PRs, in which case I can take care of them.

@nicoddemus
Copy link
Member Author

Going ahead and merge this to get a new release out. 👍

@nicoddemus nicoddemus merged commit 97d49fd into pytest-dev:master Oct 23, 2023
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.

tox4 values cannot contain whitespace
2 participants