fix: log error instead of raise RuntimeError #15
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: CI | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
ci: | |
strategy: | |
matrix: | |
python-version: ["3.10"] | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install poetry | |
run: pipx install poetry | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'poetry' | |
- name: Install dependencies | |
run: poetry install | |
- name: Check formatting with isort and black | |
run: | | |
poetry run isort . --check-only | |
poetry run black . --check | |
- name: Check typing with mypy | |
run: poetry run mypy . | |
- name: Check linting with pylint | |
run: poetry run pylint --recursive=y . | |
- name: Run unit tests | |
run: | | |
poetry run pytest |