Skip to content

Commit 95bfec5

Browse files
author
Jordan Ritter
committed
ci: add Python SDK unit test workflow
Runs pytest on sdk-python/ for pushes and PRs that touch the Python SDK.
1 parent 8bad9f3 commit 95bfec5

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: test / unit / python-sdk
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- "sdk-python/**"
8+
- ".github/workflows/test_unit-python-sdk.yml"
9+
pull_request:
10+
branches: [main]
11+
paths:
12+
- "sdk-python/**"
13+
- ".github/workflows/test_unit-python-sdk.yml"
14+
15+
jobs:
16+
test:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Set up Python
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: "3.12"
25+
26+
- name: Install Poetry
27+
uses: snok/install-poetry@v1
28+
with:
29+
version: latest
30+
virtualenvs-create: true
31+
virtualenvs-in-project: true
32+
33+
- name: Install dependencies
34+
working-directory: sdk-python
35+
run: poetry install
36+
37+
- name: Run tests
38+
working-directory: sdk-python
39+
run: poetry run python -m pytest tests/ -v

0 commit comments

Comments
 (0)