Use MSE for visual testing #493
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/checkout@v4.2.2 | |
- name: Set up Python | |
uses: actions/setup-python@v5.4.0 | |
with: | |
python-version: "3.10" | |
- name: Set up poetry | |
uses: abatilo/actions-poetry@v3.0.2 | |
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/codecov-action@v5.3.1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: Upload test results to Codecov | |
if: ${{ !cancelled() }} | |
uses: codecov/test-results-action@v1.0.3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |