Fix some ruff issues #346
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: Test | |
on: [push] | |
jobs: | |
build: | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: poetry install --no-interaction | |
- name: Run mypy check | |
run: make mypy | |
- name: Run ruff check | |
run: poetry run ruff check . | |
- name: Run ruff format check | |
run: poetry run ruff format --check . | |
- name: Run tests | |
run: make coverage.xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./coverage.xml | |
flags: unittests | |
env_vars: OS,PYTHON | |
name: codecov-umbrella | |
fail_ci_if_error: true |