Skip to content

Commit 5d92800

Browse files
committed
GitHub action to run unit tests
1 parent 7e14bad commit 5d92800

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/unit_tests.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Unit tests
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
unit_tests:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
pull-requests: read
13+
strategy:
14+
matrix:
15+
python-version: ["3.11", "3.12", "3.13"]
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Python version
23+
run: python --version
24+
- name: PDM installation
25+
run: pip install --user pdm
26+
- name: Install dependencies
27+
run: pdm install
28+
- name: Install devel dependencies
29+
run: pdm install --dev
30+
- name: Run unit tests
31+
run: pdm run python -m pytest tests/unit --cov=ols --cov=runner --cov-report term-missing

0 commit comments

Comments
 (0)