You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- name: Checks
-
- on:
- push:
- branches:
- - main
- pull_request:
- branches:
- - main
-
- jobs:
- lint:
- runs-on: ubuntu-latest
-
- steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-python@v5
- with:
- python-version: '3.10'
- - run: pip install ".[dev]"
- - run: ruff check
-
- format:
- runs-on: ubuntu-latest
-
- steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-python@v5
- with:
- python-version: '3.10'
- - run: pip install ".[dev]"
- - run: ruff format --check
-
- mypy:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-python@v5
- with:
- python-version: '3.10'
- - run: pip install ".[dev]"
- - run: mypy
-
- pyright:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-python@v5
- with:
- python-version: '3.10'
- - run: pip install ".[dev]"
- - uses: jakebailey/pyright-action@v2
-
- test:
- runs-on: ubuntu-latest
- strategy:
- matrix:
- # "pypy3.10" disabled until better example than polars used in tests
- python-version: ["3.10", "3.11", "3.12"]
- steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-python@v5
- with:
- python-version: ${{ matrix.python-version }}
- - run: pip install ".[dev]"
- - run: pytest -n auto
-
- docs:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-python@v5
- with:
- python-version: '3.10'
- - run: pip install ".[docs]"
- - run: sphinx-build --fail-on-warning docs/src docs/build
|