Fix type error #403
Workflow file for this run
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: check | |
on: | |
- push | |
- pull_request | |
permissions: | |
contents: read | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: Set up Python | |
uses: actions/[email protected] | |
with: | |
python-version: "3.10" | |
- name: Set up poetry | |
uses: abatilo/actions-poetry@3765cf608f2d4a72178a9fc5b918668e542b89b1 # v4.0.0 | |
with: | |
poetry-version: "2.0.0" | |
- name: Install dependencies | |
run: poetry install --only main,dev | |
- name: Run linter | |
run: poetry run poe lint | |
- name: Run formatter | |
run: poetry run poe format | |
- name: Run version check | |
run: poetry run poe versioncheck | |
- name: Install test dependencies | |
run: poetry install --only main,dev,test | |
- name: Run tests | |
run: poetry run poe test --cov-branch --cov-report=xml --junitxml=junit.xml -o junit_family=legacy | |
- name: Install types | |
run: poetry install --only main,dev,test,types | |
- name: Run type checking | |
run: poetry run poe typecheck | |
- name: Upload coverage results to Codecov | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: Upload test results to Codecov | |
if: ${{ !cancelled() }} | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |