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

Adding builds for main and some reusable workflows #279

Merged
merged 28 commits into from
Oct 10, 2023

Conversation

trent-codecov
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Oct 5, 2023

Codecov Report

Merging #279 (f14426f) into main (a8e8b09) will increase coverage by 0.10%.
Report is 2 commits behind head on main.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##             main     #279      +/-   ##
==========================================
+ Coverage   95.42%   95.52%   +0.10%     
==========================================
  Files          78       79       +1     
  Lines        2643     2729      +86     
==========================================
+ Hits         2522     2607      +85     
- Misses        121      122       +1     
Flag Coverage Δ
python3.10 95.64% <100.00%> (+<0.01%) ⬆️
python3.11 95.63% <100.00%> (+<0.01%) ⬆️
python3.8 95.64% <100.00%> (+<0.01%) ⬆️
python3.9 95.68% <100.00%> (+<0.01%) ⬆️
smart-labels 95.48% <50.00%> (+0.10%) ⬆️

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

Files Coverage Δ
codecov_cli/__init__.py 100.00% <100.00%> (ø)
setup.py 0.00% <0.00%> (ø)

... and 2 files with indirect coverage changes

Copy link
Contributor

@giovanni-guidini giovanni-guidini left a comment

Choose a reason for hiding this comment

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

LGTM (but I've messed up this release process very much very recently so....:E)

One thing I don't understand is the publish to Pypi only happens if we manually trigger the build_for_pypi workflow?

id: make-commit
run: |
sed -i 's/version="[0-9]\.[0-9]\.[0-9]"/version="${{ github.event.inputs.versionName }}"/g' setup.py
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice

with:
gpg_private_key: ${{ secrets.RELEASER_GPG_PRIVATE_KEY }}
git_user_signingkey: true
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice

.github/workflows/build_main.yml Outdated Show resolved Hide resolved
pip install wheel
python setup.py sdist bdist_wheel --plat-name=manylinux2014_x86_64
python setup.py bdist_wheel --plat-name=macosx-12.6-x86_64
python setup.py bdist_wheel --plat-name=win_amd64
Copy link
Contributor

Choose a reason for hiding this comment

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

Anthony recommended not using bdist_wheel and --plat-name (and instead using the build package instead): https://sentry.slack.com/archives/C04DL8SRBUZ/p1696528344746259?thread_ts=1696526939.075939&cid=C04DL8SRBUZ

Should we address that later?

Copy link
Contributor Author

@trent-codecov trent-codecov Oct 10, 2023

Choose a reason for hiding this comment

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

Yes, I want us to take a pass at making this better as a different initiative. The goal here is to improve the overall workflow first.

@trent-codecov trent-codecov merged commit f714c36 into main Oct 10, 2023
13 of 14 checks passed
@trent-codecov trent-codecov deleted the feature/main-builds branch October 10, 2023 11:34
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.

4 participants