Add type hints using basedpyright #38
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: CI | ||
|
Check failure on line 1 in .github/workflows/ci.yml
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| paths-ignore: | ||
| - '**.md' | ||
| pull_request: | ||
| paths-ignore: | ||
| - '**.md' | ||
| jobs: | ||
| unit-test: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: astral-sh/[email protected] | ||
| with: | ||
| python-version: '3.12' | ||
| - run: uvx poetry install --extras=ssr | ||
| - run: uvx poetry run pytest -v -ra --cov --cov-report=term-missing | ||
| env: | ||
| COVERAGE_CORE: sysmon | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: astral-sh/[email protected] | ||
| with: | ||
| python-version: '3.12' | ||
| - run: uv build . | ||
| - uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: dist | ||
| path: dist | ||
| ruff: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: astral-sh/ruff-action@v3 | ||
| - run: ruff check | ||
| - run: ruff format --check | ||
| mypy: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: astral-sh/setup-uv | ||
| with: | ||
| python-version: '3.12' | ||
| - run: uvx poetry install --extras=ssr | ||
| - run: uvx poetry run mypy . | ||