Updates and improvements (#4) #19
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: tests | |
on: | |
pull_request: | |
paths-ignore: | |
- ".vscode/**" | |
- ".pre-commit-config.yaml" | |
- "*.md" | |
push: | |
branches: [main] | |
paths-ignore: | |
- ".vscode/**" | |
- ".pre-commit-config.yaml" | |
- "*.md" | |
workflow_dispatch: | |
permissions: | |
contents: read | |
env: | |
PIP_DISABLE_PIP_VERSION_CHECK: 1 | |
FORCE_COLOR: 1 | |
jobs: | |
ruff: | |
name: Run ruff check and ruff format | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/setup | |
- name: Lint with ruff | |
run: python run.py ruff-check | |
- name: Format with ruff | |
run: python run.py ruff-format | |
pytest: | |
name: Run the test suite | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/setup | |
- run: python run.py pytest | |
mypy: | |
name: Run mypy on the tests and on the stubs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/setup | |
- run: python run.py mypy | |
stubtest: | |
name: Run stubtest on the the stubs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/setup | |
- run: python run.py stubtest | |
pyright: | |
name: Run pyright on the tests and on the stubs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/setup | |
- run: python run.py pyright |