Skip to content

Commit e93f118

Browse files
authored
Add GitHub workflow to run pytest when a branch is pushed (#52)
1 parent 0df4d52 commit e93f118

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/pytest.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Unit tests
2+
3+
on: [push]
4+
5+
jobs:
6+
unit-test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: actions/setup-python@v5
11+
with:
12+
python-version: '3.x'
13+
- name: Install deps
14+
run: |
15+
python -m pip install -U pip
16+
pip install poetry
17+
poetry install
18+
- name: Run python tests
19+
run: |
20+
poetry run pytest

0 commit comments

Comments
 (0)