File tree 3 files changed +25
-9
lines changed
3 files changed +25
-9
lines changed Original file line number Diff line number Diff line change
1
+ name : ReFrame CI
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ build :
7
+ runs-on : ubuntu-latest
8
+ name : Code coverage
9
+ steps :
10
+ - uses : actions/checkout@v4
11
+ - uses : actions/setup-python@v2
12
+ with :
13
+ python-version : ' 3.12'
14
+ - name : Bootstrap reframe
15
+ run : ./bootstrap.sh
16
+ - name : Run tests and collect coverage
17
+ run : |
18
+ pip install pytest-cov
19
+ ./test_reframe.py --cov=reframe --cov-report=xml
20
+ - name : Upload coverage reports
21
+
22
+ # env:
23
+ # CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change 18
18
run : |
19
19
./bootstrap.sh
20
20
- name : Generic Unittests
21
- if : matrix.python-version != '3.8'
22
21
run : |
23
22
./test_reframe.py
24
- - name : Generic Unittests and Coverage Report
25
- if : matrix.python-version == '3.8'
26
- run : |
27
- python -m pip install coverage
28
- coverage run --source=reframe ./test_reframe.py
29
- coverage report -m
30
23
31
24
unittest-py36 :
32
25
runs-on : ubuntu-20.04
Original file line number Diff line number Diff line change 22
22
23
23
24
24
# Import important names for user tests
25
- from reframe .core .pipeline import * # noqa: F401, F403
26
- from reframe .core .decorators import * # noqa: F401, F403
25
+ from reframe .core .pipeline import * # noqa: F401, F403, E402
26
+ from reframe .core .decorators import * # noqa: F401, F403, E402
You can’t perform that action at this time.
0 commit comments