-
Notifications
You must be signed in to change notification settings - Fork 112
[CLIENT-4036] CI/CD: Lock pip dependencies #913
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
Draft
juliannguyen4
wants to merge
24
commits into
dev
Choose a base branch
from
CLIENT-4036-cicd-use-pip-lock-dependencies
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
3160cca
pytest-cov is only used by cicd pipeline
juliannguyen4 81d4c37
Update dependabot.yml
juliannguyen4 b5606bc
Revert "Update dependabot.yml"
juliannguyen4 c2c8026
Merge remote-tracking branch 'origin/dev' into CLIENT-4036-cicd-use-p…
juliannguyen4 9ddcac3
delocate already comes with cibuildwheel
juliannguyen4 e1a52cc
Lock delvewheel properly
juliannguyen4 809a8a4
delvewheel is a build dep so it belongs in root level requirements.txt
juliannguyen4 f207f02
Add workflow to create pylock.toml
juliannguyen4 d7b4a3f
Register
juliannguyen4 14f2792
Revert "Register"
juliannguyen4 a0f7a8e
uv not installed on windows-2022 image
juliannguyen4 cc20a21
Probably should generate lock files for each python version
juliannguyen4 bca764e
uv probably failing because project doesn't use it.
juliannguyen4 b0ba4f6
fail fast false
juliannguyen4 b17f5ed
only lock delvewheel and deps
juliannguyen4 374c091
set permissions
juliannguyen4 7b582d2
Add to .github instead of .github/workflows because of permission errors
juliannguyen4 c489b2e
Prevent conflicts
juliannguyen4 6bf2834
Fix.
juliannguyen4 1ca38c2
Prevent race condition
juliannguyen4 f145bb4
Test in cibuildwheel
juliannguyen4 34fefd2
Use the lock file for the correct python version
juliannguyen4 ae0d7a2
Try passing github.ref explicitly to get the latest commit for branch
juliannguyen4 258b258
Fix
juliannguyen4 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| permissions: | ||
| contents: write | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| create-lock-file-for-windows: | ||
| # Should be same environment used to build wheels on Windows | ||
| runs-on: windows-2022 | ||
| strategy: | ||
| matrix: | ||
| python-version: | ||
| - '3.10' | ||
| - '3.11' | ||
| - '3.12' | ||
| - '3.13' | ||
| - '3.14' | ||
| fail-fast: false | ||
| max-parallel: 1 | ||
| steps: | ||
| - name: Harden the runner (Audit all outbound calls) | ||
| uses: step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # v2.13.3 | ||
| with: | ||
| egress-policy: audit | ||
|
|
||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
| with: | ||
| ref: ${{ github.ref }} | ||
| - run: pip install delvewheel -c requirements.txt | ||
| working-directory: .github/workflows | ||
| - run: | | ||
| pip lock delvewheel -o pylock-${{ matrix.python-version }}.toml | ||
| git add pylock-${{ matrix.python-version }}.toml | ||
| working-directory: .github | ||
| - name: Commit lock file | ||
| uses: step-security/git-auto-commit-action@905c3cd6e9ed2b67b4d46ff401fdb6d745d0ff9d # v7.1.0 | ||
| with: | ||
| commit_message: 'Generate lock file' | ||
| commit_author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | ||
| branch: ${{ github.ref }} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| parver==0.5 | ||
| crudini==0.9.4 | ||
| delocate==0.10.4 | ||
| mypy==1.17.1 | ||
| pytest-cov==4.1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| build==1.2.2.post1 | ||
| delvewheel==1.11.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1 @@ | ||
| pytest==7.4.0 | ||
| # To generate coverage reports in the Github Actions pipeline | ||
| pytest-cov==4.1.0 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.