REL: prep release 5.0.0 #998
Workflow file for this run
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
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
paths-ignore: | |
- .pre-commit-config.yaml | |
workflow_dispatch: | |
jobs: | |
tests: | |
name: Python ${{ matrix.python-version }} on ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
- windows-latest | |
python-version: | |
- '3.9' | |
- '3.12' | |
include: | |
- os: ubuntu-latest | |
python-version: 3.13-dev | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Setup package | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install "." | |
python -m pip install -r requirements/tests.txt | |
- name: Run tests | |
run: | | |
pytest --color=yes | |
tests_isolated_app: | |
name: Python ${{ matrix.python-version }} (isolated deps) | |
strategy: | |
matrix: | |
python-version: | |
- '3.9' | |
- '3.12' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Setup package | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install ".[isolated]" | |
python -m pip install -r requirements/tests.txt | |
- name: Run tests | |
run: | | |
pytest --color=yes | |
type-check: | |
strategy: | |
matrix: | |
python-version: | |
- '3.9' | |
- '3.12' | |
runs-on: ubuntu-latest | |
name: type check | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.python-version }}-typecheck | |
cancel-in-progress: true | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Build | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install "." | |
python -m pip install -r requirements/typecheck.txt | |
- name: Run mypy | |
run: mypy src/idefix_cli | |
docs: | |
runs-on: ubuntu-latest | |
name: docs | |
concurrency: | |
group: ${{ github.ref }}-docs | |
cancel-in-progress: true | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- name: Setup env | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install -r docs/requirements.txt | |
- name: Build | |
run: | | |
python -m mkdocs build | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: site | |
path: site |