Skip to content

Commit cda2554

Browse files
authored
Merge pull request #25 from MarkDaoust/py-test-action
Add a GH action to run the tests.
2 parents 9156014 + b464e20 commit cda2554

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

.github/workflows/test_pr.yaml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Notebook-related checks
2+
3+
name: Run all tests
4+
5+
on:
6+
# Relevant PRs
7+
pull_request:
8+
paths:
9+
- "google/**"
10+
- "tests/**"
11+
# Allow manual runs
12+
workflow_dispatch:
13+
14+
jobs:
15+
test3_11:
16+
name: py 3.11
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v3
20+
- uses: actions/setup-python@v4
21+
with:
22+
python-version: '3.11'
23+
- name: Run tests
24+
run: |
25+
python --version
26+
pip install -q -e .[dev]
27+
python -m unittest discover --pattern '*test*.py'
28+
test3_10:
29+
name: py 3.10
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v3
33+
- uses: actions/setup-python@v4
34+
with:
35+
python-version: '3.10'
36+
- name: Run tests
37+
run: |
38+
python --version
39+
pip install -q -e .[dev]
40+
python -m unittest discover --pattern '*test*.py'
41+
test3_9:
42+
name: py 3.9
43+
runs-on: ubuntu-latest
44+
steps:
45+
- uses: actions/checkout@v3
46+
- uses: actions/setup-python@v4
47+
with:
48+
python-version: '3.9'
49+
- name: Run tests
50+
run: |
51+
python --version
52+
pip install -q -e .[dev]
53+
python -m unittest discover --pattern '*test*.py'
54+

0 commit comments

Comments
 (0)