Skip to content

ci: Fix to install extras for testing #37

ci: Fix to install extras for testing

ci: Fix to install extras for testing #37

Workflow file for this run

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.8'
- '3.9'
- '3.10'
- '3.11'
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 make -C docs linkcheck