-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
ci: migrate to pixi #1470
Merged
Merged
ci: migrate to pixi #1470
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
c8c5343
migrate CI to pixi
maximlt 6d535ec
remove pyproject2conda
maximlt 54a0d8a
fix job needs
maximlt a2f34cd
replace python-version with environment
maximlt baf990e
enable core suite
maximlt a523f96
Merge branch 'main' into migrate_to_pixi
maximlt 2ba06e2
simplify dev flow and add docs
maximlt 183f8f2
debug build
maximlt d129218
fix conda's build
maximlt 580ba89
fix the tests
maximlt 8ad57dc
undebug build
maximlt ab22ad0
skip networkx on macos and Python 3.12
maximlt c2a94aa
attempt to skip some faulty test
maximlt 9ad76d4
add reason
maximlt 51440c8
fix tests
maximlt 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 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 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 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,25 @@ | ||
name: nightly_lock | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
env: | ||
PACKAGE: "holoviews" | ||
|
||
jobs: | ||
pixi_lock: | ||
name: Pixi lock | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- uses: holoviz-dev/holoviz_tasks/pixi_lock@v0 | ||
- name: Upload lock-file to S3 | ||
if: "!github.event.pull_request.head.repo.fork" | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
AWS_DEFAULT_REGION: "eu-west-1" | ||
run: | | ||
zip $(date +%Y-%m-%d).zip pixi.lock pixi.toml | ||
aws s3 cp ./$(date +%Y-%m-%d).zip s3://assets.holoviz.org/lock/$PACKAGE/ |
This file contains 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 |
---|---|---|
|
@@ -30,12 +30,17 @@ concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
defaults: | ||
run: | ||
shell: bash -e {0} | ||
|
||
jobs: | ||
pre_commit: | ||
name: Run pre-commit | ||
runs-on: 'ubuntu-latest' | ||
steps: | ||
- uses: holoviz-dev/holoviz_tasks/[email protected] | ||
- uses: holoviz-dev/holoviz_tasks/pre-commit@v0 | ||
|
||
setup: | ||
name: Setup workflow | ||
runs-on: ubuntu-latest | ||
|
@@ -60,10 +65,10 @@ jobs: | |
run: | | ||
MATRIX=$(jq -nsc '{ | ||
"os": ["ubuntu-latest", "macos-latest", "windows-latest"], | ||
"python-version": ["3.9", "3.12"], | ||
"environment": ["test-39", "test-312"], | ||
"exclude": [ | ||
{ | ||
"python-version": "3.9", | ||
"environment": "test-39", | ||
"os": "macos-latest" | ||
} | ||
] | ||
|
@@ -74,24 +79,24 @@ jobs: | |
run: | | ||
MATRIX=$(jq -nsc '{ | ||
"os": ["ubuntu-latest", "macos-latest", "windows-latest"], | ||
"python-version": ["3.9", "3.12"], | ||
"environment": ["test-39", "test-312"], | ||
"include": [ | ||
{ | ||
"python-version": "3.9", | ||
"environment": "test-39", | ||
"os": "ubuntu-latest" | ||
}, | ||
{ | ||
"python-version": "3.10", | ||
"environment": "test-310", | ||
"os": "ubuntu-latest" | ||
}, | ||
{ | ||
"python-version": "3.11", | ||
"environment": "test-311", | ||
"os": "ubuntu-latest" | ||
} | ||
], | ||
"exclude": [ | ||
{ | ||
"python-version": "3.9", | ||
"environment": "test-39", | ||
"os": "macos-latest" | ||
} | ||
] | ||
|
@@ -102,71 +107,82 @@ jobs: | |
run: | | ||
MATRIX=$(jq -nsc '{ | ||
"os": ["ubuntu-latest"], | ||
"python-version": ["3.12"] | ||
"environment": ["test-312"] | ||
}') | ||
echo "MATRIX=$MATRIX" >> $GITHUB_ENV | ||
|
||
conda_suite: | ||
name: conda tests:${{ matrix.os }}:${{ matrix.python-version }} | ||
needs: [pre_commit, setup] | ||
if: needs.setup.outputs.matrix_option != 'default' | ||
pixi_lock: | ||
name: Pixi lock | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: holoviz-dev/holoviz_tasks/pixi_lock@v0 | ||
with: | ||
cache: ${{ github.event.inputs.cache == 'true' || github.event.inputs.cache == '' }} | ||
|
||
unit_test_suite: | ||
name: unit:${{ matrix.environment }}:${{ matrix.os }} | ||
needs: [pre_commit, setup, pixi_lock] | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: ${{ fromJson(needs.setup.outputs.matrix) }} | ||
timeout-minutes: 90 | ||
defaults: | ||
run: | ||
shell: bash -el {0} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: holoviz-dev/holoviz_tasks/pixi_install@v0 | ||
with: | ||
fetch-depth: 0 | ||
- uses: conda-incubator/setup-miniconda@v3 | ||
environments: ${{ matrix.environment }} | ||
- name: Test Unit | ||
run: pixi run -e ${{ matrix.environment }} test-unit-cov | ||
- name: Test Geo | ||
run: pixi run -e ${{ matrix.environment }} test-unit-geo-cov | ||
- name: Test Examples | ||
run: pixi run -e ${{ matrix.environment }} test-example | ||
- uses: codecov/codecov-action@v4 | ||
with: | ||
auto-update-conda: true | ||
environment-file: envs/py${{ matrix.python-version }}-tests.yaml | ||
activate-environment: hvplottests | ||
- name: conda info | ||
run: conda info | ||
- name: conda list | ||
run: conda list | ||
- name: bokeh sampledata | ||
if: ${{ matrix.python-version == '3.9'}} | ||
run: bokeh sampledata | ||
- name: unit tests | ||
run: pytest -v hvplot --cov=hvplot --cov-append | ||
- name: unit tests geo | ||
run: pytest -v hvplot --geo --cov=hvplot --cov-append | ||
- name: examples tests | ||
run: pytest -n logical --dist loadscope --nbval-lax -p no:python | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
core_test_suite: | ||
name: core:${{ matrix.environment }}:${{ matrix.os }} | ||
needs: [pre_commit, setup, pixi_lock] | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ["ubuntu-latest"] | ||
environment: ["test-core"] | ||
timeout-minutes: 120 | ||
steps: | ||
- uses: holoviz-dev/holoviz_tasks/pixi_install@v0 | ||
with: | ||
environments: ${{ matrix.environment }} | ||
- name: Test Unit | ||
run: pixi run -e ${{ matrix.environment }} test-unit | ||
|
||
pip_test: | ||
name: pip tests:${{ matrix.os }}:${{ matrix.python-version }} | ||
name: pip tests:${{ matrix.os }}:${{ matrix.environment }} | ||
needs: [pre_commit, setup] | ||
if: needs.setup.outputs.matrix_option != 'default' | ||
timeout-minutes: 90 | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: ${{ fromJson(needs.setup.outputs.matrix) }} | ||
defaults: | ||
run: | ||
shell: bash -e {0} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
python-version: '3.12' | ||
- name: install with geo | ||
run: python -m pip install -v --prefer-binary -e '.[tests, examples-tests, geo, hvdev, hvdev-geo, dev-extras]' | ||
- name: python version and pip list | ||
run: | | ||
python --version --version | ||
python -m pip list | ||
- name: bokeh sampledata | ||
if: ${{ matrix.python-version == '3.9'}} | ||
run: bokeh sampledata | ||
- name: download datasets | ||
run: python scripts/download_data.py | ||
- name: unit tests | ||
run: pytest -v hvplot --cov=hvplot --cov-append | ||
- name: unit tests geo | ||
|
@@ -181,3 +197,13 @@ jobs: | |
verbose: false | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
result_test_suite: | ||
name: result:test | ||
needs: [unit_test_suite, core_test_suite, pip_test] | ||
if: always() | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: check for failures | ||
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') | ||
run: echo job failed && exit 1 |
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.
hvplot