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

Add one master CI which builds, tests and deploys #231

Merged
merged 57 commits into from
Mar 21, 2023

Conversation

paddyroddy
Copy link
Collaborator

@paddyroddy paddyroddy commented Mar 17, 2023

This is a solution to solving #192, however we have not used cibuildwheels. Some issues on that to follow (#235), and I'll explain why here.

Using cibuildwheels to do everything explained in #192 proved quite complex and would involve a lot of changes. This PR has the minimal changes which respect the current workflow but remove the libraries from git. I will raise an issue separately about Windows shortly (#234). We (@p-j-smith and I) hadn't realised that the Windows binary was cross-compiled, so a bit of pain trying to fix that.

The main thing done here is that now where we previously had a testing workflow and a deployment workflow, we now build the C++, test the python and deploy in a single workflow. This should ensure we don't have a failing deployment.

@deprecated-napari-hub-preview-bot
Copy link

deprecated-napari-hub-preview-bot bot commented Mar 17, 2023

Preview page for your plugin is ready here:
https://preview.napari-hub.org/quantumjot/btrack/231
Updated: 2023-03-21T12:37:04.473660

@codecov-commenter
Copy link

codecov-commenter commented Mar 17, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.13 ⚠️

Comparison is base (de6e9b8) 82.78% compared to head (1589d64) 82.65%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #231      +/-   ##
==========================================
- Coverage   82.78%   82.65%   -0.13%     
==========================================
  Files          19       19              
  Lines        1545     1545              
  Branches      262      262              
==========================================
- Hits         1279     1277       -2     
- Misses        191      192       +1     
- Partials       75       76       +1     

see 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@paddyroddy paddyroddy self-assigned this Mar 20, 2023
@paddyroddy paddyroddy added the CI label Mar 20, 2023
#-I/usr/include/python2.7 -L/usr/lib/python2.7 # -O3
LLDBFLAGS =
CXXFLAGS = -c -std=c++11 -m64 -fPIC -I"./btrack/include" \
CXXFLAGS = -c -std=c++17 -m64 -fPIC -I"./btrack/include" \
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The change to 17 is required since the change in the location of the eigen repo #229

@paddyroddy
Copy link
Collaborator Author

@quantumjot can you test the deployment? Perhaps when #228 is merged, seeing as you are bumping the version?

Copy link
Collaborator

@p-j-smith p-j-smith left a comment

Choose a reason for hiding this comment

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

great! it's much better having this run in ci, and a good first step toward using cibuildwheel. One minor change about fail-fast in ci

.github/workflows/build_wheels_test_and_deploy.yml Outdated Show resolved Hide resolved
Copy link
Owner

@quantumjot quantumjot left a comment

Choose a reason for hiding this comment

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

Great stuff - a big improvement already. Once this is merged, I can take a look with #228 .

Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
@paddyroddy paddyroddy force-pushed the build-wheels-without-cibuildwheels branch from 1589d64 to 631d9f8 Compare March 21, 2023 12:28
@paddyroddy paddyroddy merged commit c9c413f into main Mar 21, 2023
@paddyroddy paddyroddy deleted the build-wheels-without-cibuildwheels branch March 21, 2023 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants