Skip to content

Commit f1fffb0

Browse files
committed
adding coverage to test workflow and create lint job
1 parent 8de97a9 commit f1fffb0

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

.github/workflows/test.yml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,29 @@
1-
name: Tests
1+
name: On push
22

33
on: [push]
44

55
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Set up Python 3.12
11+
uses: actions/setup-python@v5
12+
with:
13+
python-version: '3.12'
14+
- name: Install dependencies
15+
run: |
16+
python -m pip install --upgrade pip
17+
pip install -r requirements_dev.txt --upgrade
18+
pip install -r requirements.txt --upgrade
19+
- name: Run tests
20+
run: |
21+
make lint
622
test:
7-
823
runs-on: ubuntu-latest
924
strategy:
1025
matrix:
11-
python-version: ["3.10", "3.11", "3.12"]
26+
python-version: ['3.10', '3.11', '3.12']
1227
services:
1328
postgres:
1429
image: postgres
@@ -37,3 +52,9 @@ jobs:
3752
- name: Run tests
3853
run: |
3954
make test
55+
- name: Create coverage report
56+
run: |
57+
make test-coverage
58+
- name: Upload coverage report
59+
run: |
60+
make test-coveralls

0 commit comments

Comments
 (0)