Skip to content

Commit

Permalink
replace python-version with environment
Browse files Browse the repository at this point in the history
  • Loading branch information
maximlt committed Jan 20, 2025
1 parent 54a0d8a commit a2f34cd
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,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"
}
]
Expand All @@ -79,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"
}
]
Expand All @@ -107,7 +107,7 @@ jobs:
run: |
MATRIX=$(jq -nsc '{
"os": ["ubuntu-latest"],
"python-version": ["3.12"]
"environment": ["test-312"]
}')
echo "MATRIX=$MATRIX" >> $GITHUB_ENV
Expand Down Expand Up @@ -161,7 +161,7 @@ jobs:
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
Expand All @@ -175,15 +175,14 @@ jobs:
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: unit tests
run: pytest -v hvplot --cov=hvplot --cov-append
Expand Down

0 comments on commit a2f34cd

Please sign in to comment.