env: Update supports #41
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: Continuous Integration | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: jdx/mise-action@v2 | |
- name: 'Configure dependencies' | |
run: | | |
uv sync --frozen --all-extras | |
- name: Lint by pre-commit | |
run: | | |
uvx pre-commit run --all-files | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: | |
- '3.9' | |
- '3.10' | |
- '3.11' | |
- '3.12' | |
- '3.13' | |
workspace: ['locked', 'latest'] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: jdx/mise-action@v2 | |
- name: 'Set python-version' | |
run: | | |
echo ${{ matrix.python-version }} > .python-version | |
- name: 'Configure env as locked deps by uv.lock' | |
run: | | |
uv sync --frozen --all-extras --python='${{ steps.setup-python.outputs.python-path }}' | |
if: ${{ matrix.workspace == 'locked'}} | |
- name: 'Configure env as latest deps on PyPI' | |
run: | | |
uv sync -U --all-extras --python='${{ steps.setup-python.outputs.python-path }}' | |
if: ${{ matrix.workspace == 'latest'}} | |
- name: 'Run tests' | |
run: | | |
uv run pytest | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: jdx/mise-action@v2 | |
- name: 'Configure dependencies' | |
run: | | |
uv sync --frozen --all-extras | |
- name: Run check | |
run: | | |
uv run make -C docs linkcheck |