Skip to content

Merge pull request #4 from nkongenelly/add_config_class #58

Merge pull request #4 from nkongenelly/add_config_class

Merge pull request #4 from nkongenelly/add_config_class #58

Workflow file for this run

---
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