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

Update CI/CD workflows #363

Merged
merged 6 commits into from
Oct 20, 2021
Merged

Update CI/CD workflows #363

merged 6 commits into from
Oct 20, 2021

Conversation

CasperWA
Copy link
Owner

Closes #362

This PR updates the CI/CD workflows to be similar to those implemented in the OPTIMADE Gateway.

This includes:

  • automating dependabot updates;
  • pre-commit updates;
  • updating the stable branch upon release;
  • adding a changelog and keeping it up-to-date; and
  • appending the changelog for a given release in the GitHub release description.

Add updating the release text with the changelog of the version.
Also fix issue with earlier switch from SemVer to CalVer in connection
with adding the changelog to the release description on GitHub.
These workflows are similar to the ones in the OPTIMADE Gateway (see
https://github.com/Materials-Consortia/optimade-gateway).

The following is done:
- Run Dependabot updates every Monday at 5 UTC.
- Merge into/reset permanent, dedicated dependabot branch whenever there
  is a new push to `develop` (the default branch).
- Create a PR every Wednesday at 6:30 UTC, requesting to merge a copy of
  the dedicated dependabot branch into `develop`.
  As a bonus, before opening this PR, an attempt is made at also
  updating the `pre-commit` hooks and running `pre-commit` to commit any
  changes.
- Enable "auto-merge" for all Dependabot-created PRs.

Remaining issues/manual labour:
- Fix `pre-commit` if issues arise when running it.
- Fix Dependabot dependency PRs if they do not pass the CI tests.
@codecov
Copy link

codecov bot commented Oct 20, 2021

Codecov Report

Merging #363 (ea5c93f) into develop (1485d91) will decrease coverage by 0.45%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #363      +/-   ##
===========================================
- Coverage    35.70%   35.24%   -0.46%     
===========================================
  Files           19       19              
  Lines         2403     2403              
===========================================
- Hits           858      847      -11     
- Misses        1545     1556      +11     
Flag Coverage Δ
optimade-client 35.24% <ø> (-0.46%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
optimade_client/utils.py 56.64% <0.00%> (-3.18%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1485d91...ea5c93f. Read the comment docs.

@CasperWA CasperWA merged commit aea8846 into develop Oct 20, 2021
@CasperWA CasperWA deleted the close-362-more-automated-ci-cd branch October 20, 2021 23:00
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.

Update CI/CD to be more automatic
1 participant