-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (30 loc) · 917 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
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