CI: fix typo in job's name #85
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
name: Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
schedule: | |
- cron: '0 5 * * 1' | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
tox_test: | |
name: tox on ${{ matrix.os }} with ${{ matrix.name }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
# Run all supported OS for one Python version. | |
# The test additional Python versions on Linux only. | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ['3.12'] | |
toxenv: [py312-test] | |
name: ['Python 3.12',] | |
include: | |
- python-version: '3.11' | |
toxenv: py311-test-oldestdeps | |
name: Python 3.11 and oldest versioned dependencies | |
os: ubuntu-latest | |
- python-version: '3.13' | |
toxenv: py313-test-devdeps | |
name: Python 3.13 and developer versioned dependencies | |
os: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: python -m pip install --upgrade tox | |
- name: Test with tox | |
run: tox ${{ matrix.toxargs }} -e ${{ matrix.toxenv }} -- ${{ matrix.toxposargs }} | |
tox_build: | |
name: Build static site with tox | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install dependencies | |
run: python -m pip install --upgrade tox | |
- name: Build static site | |
run: tox -e py312-buildhtml | |
pixi_test: | |
name: pixi on ${{ matrix.os }} with ${{ matrix.environment}} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
# Run all supported OS for one Python version, then add a few extra scenarios | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
environment: [py311, py312] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup pixi | |
uses: prefix-dev/[email protected] | |
- name: Test all files | |
run: pixi run test | |
pixi_build: | |
name: Build static site with pixi | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup pixi | |
uses: prefix-dev/[email protected] | |
- name: Build static site | |
run: pixi run build | |
pixi_build_wasm: | |
name: Build jupyterlite site with pixi | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup pixi | |
uses: prefix-dev/[email protected] | |
- name: Build jupyterlite site | |
run: pixi run build_wasm |