Skip to content

Commit cdcf55b

Browse files
committed
Add GitHub workflow to automatically execute tests.
1 parent 2320002 commit cdcf55b

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
python-version: [3.8, 3.9, 3.10, 3.11]
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install -e .
29+
pip install -r requirements.txt || true
30+
pip install coverage
31+
32+
- name: Run tests with coverage
33+
run: |
34+
coverage run -m unittest discover pydeepskylog/tests
35+
coverage report
36+
coverage xml

0 commit comments

Comments
 (0)