@@ -18,15 +18,11 @@ jobs:
1818 run : |
1919 ./bootstrap.sh
2020 - name : Generic Unittests
21- if : matrix.python-version != '3.8'
2221 run : |
23- ./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
22+ pip install pytest-cov
23+ ./test_reframe.py --cov=reframe --cov-report=xml
24+ - name : Upload coverage reports
25+ uses : codecov/codecov-action@v4.2.0
3026
3127 unittest-py-eol :
3228 runs-on : ubuntu-latest
4036 docker build --build-arg PYTHON_VERSION=${{ matrix.python-version }} -f ci-scripts/dockerfiles/reframe-python.dockerfile -t reframe-python${{ matrix.python-version }}:latest .
4137 - name : Run Unittests
4238 run : |
43- docker run reframe-python${{ matrix.python-version }}:latest
39+ docker run --name reframe-python${{ matrix.python-version }} reframe-python${{ matrix.python-version }}:latest
40+ docker cp reframe-python${{ matrix.python-version }}:/home/rfmuser/reframe/coverage.xml .
41+ - name : Upload coverage reports
42+ uses : codecov/codecov-action@v4.2.0
4443
4544 unittest-macos :
4645 runs-on : macos-latest
5857 ./bootstrap.sh
5958 - name : Generic Unittests
6059 run : |
61- ./test_reframe.py
60+ pip install pytest-cov
61+ ./test_reframe.py --cov=reframe --cov-report=xml
62+ - name : Upload coverage reports
63+ uses : codecov/codecov-action@v4.2.0
6264
6365 modulestest :
6466 runs-on : ubuntu-latest
7880 docker build -f ci-scripts/dockerfiles/reframe-${{ matrix.modules-version }}.dockerfile -t reframe-${{ matrix.modules-version }}:latest .
7981 - name : Run Unittests
8082 run : |
81- docker run reframe-${{ matrix.modules-version }}:latest
83+ docker run --name=reframe-${{ matrix.modules-version }} reframe-${{ matrix.modules-version }}:latest
84+ docker cp reframe-${{ matrix.modules-version }}:/home/rfmuser/reframe/coverage.xml .
85+ - name : Upload coverage reports
86+ uses : codecov/codecov-action@v4.2.0
8287
8388 eb-spack-howto :
8489 runs-on : ubuntu-latest
0 commit comments