-
Notifications
You must be signed in to change notification settings - Fork 60
35 lines (34 loc) · 1.07 KB
/
testing.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Unit tests
on:
pull_request:
paths:
- 'frontends/**'
- 'src/**'
- 'test/**'
- '.github/workflows/testing.yml'
permissions: read-all
jobs:
unittests:
runs-on: ubuntu-latest
name: Unit Tests
steps:
- name: Check out source repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v2.4.0
- name: Set up Python environment
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v3.0.0
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Prepare test case files
run: |
cd tests/java && ./runTest.sh test3 && ./runTest.sh test4 && ./runTest.sh test11 && ./runTest.sh test12
- name: Test unittests and generate coverage report
run: |
coverage run -m pytest -vv src/test/
- name: Display and clean up unittests coverage report
run: |
coverage report -m
rm .coverage