Skip to content

Commit 4709970

Browse files
committed
Add test workflow to run pytest in CI
1 parent 7154d71 commit 4709970

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Test
2+
3+
on: [pull_request, push]
4+
5+
jobs:
6+
test:
7+
name: Test
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v7
13+
14+
- name: Install dependencies
15+
run: |
16+
python -m pip install --upgrade pip
17+
pip install pytest pyyaml requests
18+
19+
- name: Unpack action
20+
run: python tools/unpack.py
21+
22+
- name: Run pytest
23+
run: python -m pytest tests/
24+
25+
- name: Pack action
26+
run: python tools/pack.py
27+
28+
- name: Check for changes
29+
run: git diff --exit-code

0 commit comments

Comments
 (0)