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

Reorganize the CI (attempt #2) #1084

Merged
merged 10 commits into from
Jun 24, 2023
Merged

Reorganize the CI (attempt #2) #1084

merged 10 commits into from
Jun 24, 2023

Conversation

mwouts
Copy link
Owner

@mwouts mwouts commented Jun 21, 2023

  • Run on push/pull requests onto main
  • Use concurrency rather than skip_duplicate
  • Remove old lint job since it has been superseded by pre-commit
  • Simplify CodeQL
  • Upload coverage with codecov/codecov-action@v3
  • Use trusted publishing

- Run on push/pull requests onto main
- Use concurrency rather than skip_duplicate
- Remove old lint job since it has been superseded by pre-commit
- Simplify CodeQL
- Upload coverage with codecov/codecov-action@v3
- Use trusted publishing
@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

@mwouts mwouts force-pushed the reorganize_ci_2 branch 4 times, most recently from 197a845 to aea8179 Compare June 21, 2023 22:29
@mwouts mwouts force-pushed the reorganize_ci_2 branch from aea8179 to db40fc9 Compare June 21, 2023 22:31
- "v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+"

jobs:
publish:
Copy link
Contributor

Choose a reason for hiding this comment

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

Can add a:

tests:
    uses: ./.github/workflows/continuous-integration.yml
    secrets: inherit

With a needs on publish and a on.workflow_call on continuous-integration.yml

Copy link
Owner Author

Choose a reason for hiding this comment

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

I think it would make sense to have publish step executed only when the tests pass, but isn't the current version fine? I.e. the maintainer should not release a new version until all the CI jobs pass, right?

Also what is the meaning of secrets? I have not tried yet the trusted publishing approach, but I thought that it would not use secrets anymore?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, for the most part it is ok. Adding a dependency like that will make sure that if there were any upstream changes in the meantime, everything is still good. I usually run ci-build-wheel only before release because of how thorough it is and test just for good measure.

secrets is not really necessary there. It basically makes sure that your secrets (in publish) propagate to continous-integration.yml. Since these are within the same project and there are no special secret treatments, it can be dropped.

@mwouts mwouts merged commit 468ad0d into main Jun 24, 2023
@mwouts mwouts deleted the reorganize_ci_2 branch June 24, 2023 17:32
@mwouts mwouts mentioned this pull request Jun 29, 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.

2 participants