-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (40 loc) · 1.21 KB
/
battery.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Run Battery of Checks
on: [push, pull_request]
jobs:
battery:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.11 ]
steps:
- uses: actions/checkout@v4.1.2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5.1.0
with:
python-version: ${{ matrix.python-version }}
- name: Cache Poetry dependencies
uses: actions/cache@v4.0.2
with:
path: |
~/.cache/pypoetry
.venv
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Install dependencies
run: |
pip install poetry
poetry install --no-root --with dev
# - name: Ruff & Isort Check
# run: |
# poetry run ruff check ./RTN
# poetry run isort --check-only ./RTN
# - name: Type check
# run: poetry run pyright
- name: Run Tests & Coverage
run: poetry run pytest --cov=./RTN --cov-report=xml --cov-fail-under=80
- name: Upload Coverage Report to Codecov
uses: codecov/codecov-action@v4.1.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml