Skip to content

Commit 15e23c4

Browse files
authored
Adding GH actions for Py (#23)
🎉 Adding GH actions for Py Signed-off-by: Matthias Wessendorf <[email protected]>
1 parent 21b47e6 commit 15e23c4

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Python Package CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build-and-test:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
python-version: [3.12]
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
- name: Install dependencies
21+
run: |
22+
pip install poetry
23+
poetry install
24+
- name: Check for syntax errors
25+
run: |
26+
python -m compileall .
27+
- name: Run tests
28+
run: |
29+
PYTHONPATH=src poetry run pytest

0 commit comments

Comments
 (0)