feat: Add fallback option in internal func #116
Workflow file for this run
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: Continuous Integration | |
on: | |
push: | |
branches: | |
- '**' | |
tags-ignore: | |
- '**' | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: astral-sh/setup-uv@v2 | |
- name: Lint by pre-commit | |
run: | | |
uvx pre-commit run --all-files | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 4 | |
matrix: | |
python-version: ['3.9', '3.10', '3.11', '3.12'] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: astral-sh/setup-uv@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
id: 'setup-python' | |
with: | |
architecture: x64 | |
python-version: ${{ matrix.python-version }} | |
- name: Run tests | |
run: | | |
uv sync --frozen --python='${{ steps.setup-python.outputs.python-path }}' | |
uv run pytest | |
uv run pytest -m webtest | |
buildtest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: astral-sh/setup-uv@v2 | |
- name: Build | |
run: | | |
uv build | |
ls -l dist | |
doctest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: astral-sh/setup-uv@v2 | |
- name: Run tests | |
run: | | |
uv sync --frozen | |
uv run make -C docs apidoc linkcheck dirhtml |