Skip to content

Commit f522696

Browse files
per1234aentinger
authored andcommitted
Add GitHub Actions workflow to run Python unit tests
Run unit tests on every PR and push.
1 parent 26fc09f commit f522696

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: libraries/compile-examples workflow
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
13+
- name: Set up Python
14+
uses: actions/setup-python@v1
15+
with:
16+
python-version: '3.8.2'
17+
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install --requirement "$GITHUB_WORKSPACE/libraries/compile-examples/reportsizetrends/requirements.txt"
22+
23+
- name: Run Python unit tests
24+
run: |
25+
export PYTHONPATH="$GITHUB_WORKSPACE/libraries/compile-examples/reportsizetrends"
26+
python -m unittest discover "$GITHUB_WORKSPACE/libraries/compile-examples/reportsizetrends/tests"

0 commit comments

Comments
 (0)