Skip to content

Commit 315548f

Browse files
committed
ci: add GitHub Actions workflow for Python testing
1 parent 7a6f2c2 commit 315548f

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
env:
13+
QUIP_TOKEN: ${{ secrets.QUIP_TOKEN }}
14+
QUIP_BASE_URL: ${{ secrets.QUIP_BASE_URL }}
15+
TEST_THREAD_ID: ${{ secrets.TEST_THREAD_ID }}
16+
TEST_SHEET_NAME: ${{ secrets.TEST_SHEET_NAME }}
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
21+
- name: Set up Python
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: '3.11'
25+
26+
- name: Install uv
27+
run: |
28+
curl -Ls https://astral.sh/uv/install.sh | sh
29+
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
30+
31+
- name: Install dependencies
32+
run: uv pip install --system --no-cache-dir
33+
34+
- name: Run unit tests
35+
run: pytest tests
36+
37+
- name: Run e2e tests
38+
run: pytest tests/e2e

0 commit comments

Comments
 (0)