Skip to content

Commit 9b60419

Browse files
committed
feat: add basic github testing workflow
1 parent a3d4ce7 commit 9b60419

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Run Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: '3.11'
21+
22+
- name: Install Poetry
23+
run: |
24+
curl -sSL https://install.python-poetry.org | python3 -
25+
env:
26+
POETRY_HOME: $HOME/.poetry
27+
28+
- name: Add Poetry to PATH
29+
run: echo "$HOME/.poetry/bin" >> $GITHUB_PATH
30+
31+
- name: Install dependencies
32+
run: |
33+
poetry install
34+
35+
- name: Run tests
36+
run: |
37+
poetry run pytest

0 commit comments

Comments
 (0)