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 the CI #1204

Merged
merged 8 commits into from
Jan 13, 2024
Merged

Update the CI #1204

merged 8 commits into from
Jan 13, 2024

Conversation

mwouts
Copy link
Owner

@mwouts mwouts commented Jan 12, 2024

This PR follows-up on #1190

Copy link

Thank you for making this pull request.

Did you know? You can try it on Binder: Binder:lab or Binder:notebook.

Also, the version of Jupytext developed in this PR can be installed with pip:

pip install git+https://github.com/mwouts/jupytext.git@update_ci_revert_release

(this requires nodejs, see more at Developing Jupytext)

Copy link

codecov bot commented Jan 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9046930) 96.74% compared to head (2859d94) 97.73%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1204      +/-   ##
==========================================
+ Coverage   96.74%   97.73%   +0.98%     
==========================================
  Files          29       29              
  Lines        4456     4456              
==========================================
+ Hits         4311     4355      +44     
+ Misses        145      101      -44     

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

@mwouts
Copy link
Owner Author

mwouts commented Jan 12, 2024

@LecrisUT I think I am happy with this version, are you OK if I squash and merge it? Thanks!

@LecrisUT
Copy link
Contributor

Actually it will be better with a merge commit:

  • it will mark the other PR as merged
  • this one touches quite a few files. The history and blame is useful to keep in this case

Let me go over the changes a bit

- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
- uses: softprops/action-gh-release@v1
Copy link
Contributor

Choose a reason for hiding this comment

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

You can add this action as well, it doesn't affect the previous workflow, it just makes sure that a release is created (as a draft) from the tag. You still need to review and push the publish release button, unless you drop the draft: true and edit afterwards.

Copy link
Owner Author

Choose a reason for hiding this comment

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

I will keep that in mind, but for now I'd rather cut a release. I am not familiar with the inputs not with the buttons in GA yet, I will need to look into that later on.

uses: ./.github/workflows/step_build.yml
with:
upload: true
ref: ${{ inputs.ref }}
Copy link
Contributor

Choose a reason for hiding this comment

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

This one is the same workflow as you have currently, it's just separated into steps to minimize maintenance and to scope the permissions a bit

Copy link
Owner Author

Choose a reason for hiding this comment

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

Yes - I think I have the same in publish.yml now - at least I have tried to port your changes on release.yml there.

@@ -85,6 +87,7 @@ jobs:
python -m jupyterlab.browser_check

- name: Test with pytest
continue-on-error: ${{ matrix.experimental }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Actually for this one I put the continue-on-error only if it's on push so that:

  • when people look at the main branch they see green ticks
  • when on PR we see what experimental jobs are failing and can navigate more easily
  • use workflow badge to show overall pass/fail
  • the pass job shows you when non-experimental jobs fail. Use that as a required job to keep trackof PR status instead

Copy link
Owner Author

Choose a reason for hiding this comment

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

That's a good suggestion, I will have to follow-up on that one

- python-version: "3.x"
markdown-it-py-version: "~=2.0"
markdown-it-py: "~=2.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

Should also add ==1.0 here to track the old dependency

Copy link
Owner Author

Choose a reason for hiding this comment

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

Actually I tried ~=1.0 at https://github.com/mwouts/jupytext/actions/runs/7512100735, but the installation failed. I don't have time to do further attempts so I will go without that.

@mwouts mwouts force-pushed the update_ci_revert_release branch 2 times, most recently from 2859d94 to b1c379a Compare January 13, 2024 11:35
@mwouts mwouts merged commit bf5c874 into main Jan 13, 2024
34 of 42 checks passed
@mwouts mwouts deleted the update_ci_revert_release branch January 13, 2024 15:58
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.

None yet

2 participants