Skip to content

Use pydata_sphinx_theme.utils.get_theme_options_dict #44

Use pydata_sphinx_theme.utils.get_theme_options_dict

Use pydata_sphinx_theme.utils.get_theme_options_dict #44

Workflow file for this run

name: Tests
on:
push:
branches: [ main ]
pull_request:
concurrency:
# Concurrency group that uses the workflow name and PR number if available
# or commit SHA as a fallback. If a new build is triggered under that
# concurrency group while a previous build is running it will be canceled.
# Repeated pushes to a PR will cancel all previous builds, while multiple
# merges to main will not cancel.
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
test:
name: ${{ matrix.os }}, py${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest, macos-15-intel]
python-version: ["39", "310", "311", "312", "313"]
env:
PIXI_ENV_NAME: test-py${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
- name: Setup pixi
uses: prefix-dev/setup-pixi@28eb668aafebd9dede9d97c4ba1cd9989a4d0004 # v0.9.2
with:
environments: ${{ env.PIXI_ENV_NAME }}
- name: Run tests with coverage
run: pixi run --environment ${{ env.PIXI_ENV_NAME }} test
- name: Upload coverage reports to Codecov
if: matrix.python-version == '312' && matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
fail_ci_if_error: false
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup pixi
uses: prefix-dev/setup-pixi@28eb668aafebd9dede9d97c4ba1cd9989a4d0004 # v0.9.2
- name: Run CI pipeline (lint + type-check + test)
run: pixi run ci