-
Notifications
You must be signed in to change notification settings - Fork 0
Ci and pixi #19
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
Merged
Merged
Ci and pixi #19
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
58977e9
Add verificiation of PR labels workflow
damskii9992 2366f8e
Add verification of issue labels workflow
damskii9992 5f5b627
Add pixi
damskii9992 fffd3d3
Add code coverage and use pixi in CI
damskii9992 106d517
Ruff format
damskii9992 85ae197
Couldn't find pixi setup actions
damskii9992 376ed97
Update supported python versions
damskii9992 db75272
Forgot to change python version in CI
damskii9992 da21054
Add nightly workflow
damskii9992 2b2ce67
Convert other workflows to use Pixi
damskii9992 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| name: 'Setup Pixi Environment' | ||
| description: 'Sets up pixi with common configuration' | ||
| inputs: | ||
| environments: | ||
| description: 'Pixi environments to setup' | ||
| required: false | ||
| default: 'dev' | ||
| activate-environment: | ||
| description: 'Environment to activate' | ||
| required: false | ||
| default: 'dev' | ||
| run-install: | ||
| description: 'Whether to run install' | ||
| required: false | ||
| default: 'true' | ||
| cache: | ||
| description: 'Whether to use cache' | ||
| required: false | ||
| default: 'false' | ||
| post-cleanup: | ||
| description: 'Whether to run post cleanup' | ||
| required: false | ||
| default: 'false' | ||
|
|
||
| runs: | ||
| using: 'composite' | ||
| steps: | ||
| - uses: prefix-dev/setup-pixi@v0.9.0 | ||
| with: | ||
| environments: ${{ inputs.environments }} | ||
| activate-environment: ${{ inputs.activate-environment }} | ||
| run-install: ${{ inputs.run-install }} | ||
| cache: ${{ inputs.cache }} | ||
| post-cleanup: ${{ inputs.post-cleanup }} | ||
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,24 @@ | ||
| # Nightly Check - install dependencies and run tests after pixi update-lock | ||
| name: Nightly Check | ||
| on: | ||
| schedule: | ||
| - cron: '0 0 * * *' # Runs every day at midnight UTC | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| nightly-check: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we need to move this into our |
||
|
|
||
| - name: Setup Pixi | ||
| uses: ./.github/actions/setup-pixi | ||
|
|
||
| - name: Update lock file | ||
| run: pixi run update-lock | ||
|
|
||
| - name: Build package | ||
| run: pixi run build | ||
|
|
||
| - name: Run tox tests | ||
| run: pixi run tox | ||
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
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,31 @@ | ||
| # This workflow will verify that all issues have at | ||
| # least one of the [scope] labels and one of the [priority] labels | ||
|
|
||
| name: Verify issue labels | ||
| on: | ||
| issues: | ||
| types: [opened, labeled, unlabeled] | ||
|
|
||
| jobs: | ||
| check_issue_labels: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| issues: write | ||
| steps: | ||
| - name: Require [scope] label | ||
| uses: trstringer/require-label-prefix@v1 | ||
| with: | ||
| secret: ${{ github.TOKEN }} | ||
| prefix: "[scope]" | ||
| addLabel: true | ||
| defaultLabel: "[scope] ⚠️ label needed" | ||
|
|
||
| - name: Require [priority] label | ||
| if: always() | ||
| uses: trstringer/require-label-prefix@v1 | ||
| with: | ||
| secret: ${{ github.TOKEN }} | ||
| prefix: "[priority]" | ||
| addLabel: true | ||
| defaultLabel: "[priority] ⚠️ label needed" | ||
|
|
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,23 @@ | ||
| # This workflow will verify that all PRs have at | ||
| # least one of the [scope] labels before they can be merged. | ||
|
|
||
| name: Verify PR labels | ||
| on: | ||
| pull_request_target: | ||
| types: [opened, labeled, unlabeled, synchronize] | ||
|
|
||
| jobs: | ||
| check_pr_label: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| pull-requests: write | ||
| name: Verify that the PR has a valid label | ||
| steps: | ||
| - name: Verify PR label action | ||
| uses: jesusvasquez333/verify-pr-label-action@v1.4.0 | ||
| id: verify-pr-label | ||
| with: | ||
| github-token: ${{ github.TOKEN }} | ||
| valid-labels: '[scope] bug, [scope] enhancement, [scope] documentation, [scope] significant, [scope] maintenance' | ||
| pull-request-number: ${{ github.event.pull_request.number }} | ||
| disable-reviews: false |
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this a separate action? Use the one in the
actionsrepo.Check out easyscience/corelib#174