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

ci: use checkout with fetch-depth 0 #313

Merged
merged 3 commits into from
Jul 8, 2024
Merged

Conversation

afuetterer
Copy link
Contributor

Copy link

codecov bot commented Jul 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.12%. Comparing base (2883ef9) to head (93e268e).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #313   +/-   ##
=======================================
  Coverage   86.12%   86.12%           
=======================================
  Files          17       17           
  Lines        4165     4165           
  Branches      981      981           
=======================================
  Hits         3587     3587           
  Misses        424      424           
  Partials      154      154           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@afuetterer
Copy link
Contributor Author

Two questions.

Regarding gh-release workflow:

Regarding deploy workflow:

  • The workflow runs on push, so every commit builds the package, but only on a tag it is deployed.
  • Is this intended? Or should deploy run on tag only?
    if: startsWith(github.ref, 'refs/tags')
  • maybe you could use build-and-inspect-python-package in the ci workflow? It tests if the package is "buildable" and runs a few checks on the files, metadata etc.

@FabianHofmann
Copy link
Collaborator

thanks for the PR and raising the issue @afuetterer, I think @lkstrp knows :)

@afuetterer
Copy link
Contributor Author

@lkstrp
Copy link
Member

lkstrp commented Jul 8, 2024

In my opinion this line is redundant, because the workflow only runs, when a tag is pushed:

Yes, it's redundant.

Is this intended? Or should deploy run on tag only?

And this is not intended either. We can also combine both workflows, as done in PyPSA.

And using build-and-inspect-python-package is also good I think.
We could also then go further from there. E.g. uploading all commits to test-pypi (as done here) or the version matrix based on package metadata. But this is not urgent.

@afuetterer
Copy link
Contributor Author

What does that mean for this PR?

@lkstrp
Copy link
Member

lkstrp commented Jul 8, 2024

You can apply everything proposed in here.

@FabianHofmann
Copy link
Collaborator

@afuetterer ready to merge?

@afuetterer
Copy link
Contributor Author

@afuetterer ready to merge?

Yes. Will open another PR soon.

@FabianHofmann
Copy link
Collaborator

great thanks @afuetterer

@FabianHofmann FabianHofmann merged commit ed6fa05 into PyPSA:master Jul 8, 2024
15 checks passed
@afuetterer afuetterer deleted the ci branch July 9, 2024 09:28
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.

3 participants