Skip to content

Commit 6608acb

Browse files
authored
ci: add GitHub Actions workflow for Python testing (#1)
1 parent 7a6f2c2 commit 6608acb

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/ci.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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.12'
25+
26+
- name: Upgrade pip
27+
run: python -m pip install --upgrade pip
28+
29+
- name: Install project dependencies
30+
run: pip install .
31+
32+
- name: Install pytest
33+
run: pip install pytest
34+
35+
- name: Show Python version and installed packages
36+
run: |
37+
python --version
38+
pip list
39+
40+
- name: Run unit tests
41+
run: pytest tests
42+
43+
- name: Run e2e tests
44+
run: pytest tests/e2e

0 commit comments

Comments
 (0)