Add config class #56
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: Run Unit Tests | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- uses: abatilo/actions-poetry@v2 | |
with: | |
poetry-version: "1.8.3" | |
- name: Install dependencies | |
run: poetry install | |
- name: Run tests | |
run: poetry run pytest --cov=arteria --cov-report=xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: Check PEP8 compliance | |
run: poetry run flake8 arteria/ tests/ | |
- name: Lint code | |
run: poetry run pylint arteria/ --rcfile=arteria/.pylintrc | |
- name: Lint tests | |
run: poetry run pylint tests --rcfile=tests/.pylintrc | |
- name: Build package | |
run: poetry build |