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

[Fix / Misc] Fix conda CI build and publish job and update actions #1453

Merged
merged 13 commits into from
Feb 7, 2024

Conversation

felixdittrich92
Copy link
Contributor

@felixdittrich92 felixdittrich92 commented Feb 7, 2024

This PR:

  • Fix conda build and publish jobs
  • Update to checkout-v4

Any feedback is welcome :)

Copy link

codecov bot commented Feb 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (13dd377) 0.00% compared to head (4cfb71c) 95.81%.

Additional details and impacted files
@@            Coverage Diff            @@
##           main    #1453       +/-   ##
=========================================
+ Coverage      0   95.81%   +95.81%     
=========================================
  Files         0      162      +162     
  Lines         0     7101     +7101     
=========================================
+ Hits          0     6804     +6804     
- Misses        0      297      +297     
Flag Coverage Δ
unittests 95.81% <ø> (?)

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

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

@felixdittrich92 felixdittrich92 self-assigned this Feb 7, 2024
@felixdittrich92 felixdittrich92 added this to the 0.8.0 milestone Feb 7, 2024
@felixdittrich92 felixdittrich92 added type: bug Something isn't working topic: ci Related to CI labels Feb 7, 2024
@felixdittrich92 felixdittrich92 changed the title test [Fix / Misc] Fix conda CI build and publish job and update actions Feb 7, 2024
@@ -105,4 +107,4 @@ jobs:
- name: Install package
shell: bash -el {0}
run: |
conda install -c mindee doctr
conda install -c mindee -c conda-forge -c pypdfium2-team -c bblanchon doctr
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@frgfm @mara004 the channels was missing before correct ? Or does it use it from the config and we can keep only the mindee channel ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed to:

conda config --set channel_priority strict
conda install -c mindee -c pypdfium2-team -c bblanchon -c conda-forge python-doctr

@felixdittrich92
Copy link
Contributor Author

Thanks @mara004 your conda section from pypdfium2 was really helpful 👍

@felixdittrich92 felixdittrich92 marked this pull request as ready for review February 7, 2024 09:26
@@ -105,4 +107,5 @@ jobs:
- name: Install package
shell: bash -el {0}
run: |
conda install -c mindee doctr
conda config --set channel_priority strict
conda install -c mindee -c pypdfium2-team -c bblanchon -c conda-forge python-doctr
Copy link
Contributor

Choose a reason for hiding this comment

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

@frgfm the channel is created automatically the first time it's uploaded correct ? 😅

Copy link
Collaborator

Choose a reason for hiding this comment

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

Nope, the channel has to be created along with the token so that we can upload it :)

Copy link
Collaborator

@frgfm frgfm left a comment

Choose a reason for hiding this comment

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

Thanks for the PR felix! A few gardening comments (the conda channel & token needs to be set for the job to work)

- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: 3.8
channels: pypdfium2-team,bblanchon,conda-forge
Copy link
Collaborator

Choose a reason for hiding this comment

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

The nice thing with putting the channels directly in the command is that it will be the same for installation & we don't rely too much on the evolution of this Github action.

Copy link
Contributor

Choose a reason for hiding this comment

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

Mh yeah that's correct but now we have both ways with the action and in publish the same thing without (for installation) :)

@@ -105,4 +107,5 @@ jobs:
- name: Install package
shell: bash -el {0}
run: |
conda install -c mindee doctr
conda config --set channel_priority strict
conda install -c mindee -c pypdfium2-team -c bblanchon -c conda-forge python-doctr
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nope, the channel has to be created along with the token so that we can upload it :)

@felixdittrich92 felixdittrich92 merged commit 04aa84c into mindee:main Feb 7, 2024
70 checks passed
@felixdittrich92 felixdittrich92 deleted the conda-test branch February 7, 2024 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: ci Related to CI type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants