Skip to content

Commit db3bae3

Browse files
committed
Add basic GitHub Action
Signed-off-by: Cristian Le <[email protected]>
1 parent 838fd32 commit db3bae3

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/tests.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: test
2+
run-name: Run tests
3+
4+
on:
5+
push:
6+
branches: [ master ]
7+
pull_request:
8+
branches: [ master ]
9+
10+
jobs:
11+
pre-commit:
12+
name: Check pre-commit
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: actions/setup-python@v4
17+
- uses: pre-commit/[email protected]
18+
19+
pytest:
20+
name: Run pytests
21+
runs-on: ubuntu-latest
22+
needs: [ pre-commit ]
23+
steps:
24+
- uses: actions/checkout@v3
25+
- name: Set up Python
26+
uses: actions/setup-python@v4
27+
- name: Install pytest
28+
run: pip install pytest invocations mock pytest-relaxed
29+
- name: Setup patchwork
30+
run: pip install -e .
31+
- name: Test with pytest
32+
run: pytest

0 commit comments

Comments
 (0)