Skip to content

Commit bc68353

Browse files
committed
Use separate Github action for codecov
1 parent ab3024a commit bc68353

File tree

3 files changed

+25
-9
lines changed

3 files changed

+25
-9
lines changed

.github/workflows/codecov.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
uses: codecov/[email protected]
22+
# env:
23+
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/main.yml

-7
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,8 @@ jobs:
1818
run: |
1919
./bootstrap.sh
2020
- name: Generic Unittests
21-
if: matrix.python-version != '3.8'
2221
run: |
2322
./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
3023
3124
unittest-py36:
3225
runs-on: ubuntu-20.04

reframe/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@
2222

2323

2424
# 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

0 commit comments

Comments
 (0)