Skip to content

Commit b08df67

Browse files
authored
Coverage-report now uses less restricted file-names (#470)
* Changed naming of coverage file, to include it in report * Changed name of coverage-file and data-dir * Changed to python 3.12 * Run linting with python 3.10, as flakeheaven does not support 3.12
1 parent 3b02b89 commit b08df67

File tree

3 files changed

+14
-36
lines changed

3 files changed

+14
-36
lines changed

.github/workflows/ci_pipeline.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,16 @@ jobs:
6363
coverage run -m pytest --continue-on-collection-errors -v --durations=0 pySDC/tests -m ${{ matrix.env }}
6464
- name: Make coverage report
6565
run: |
66-
mv data data_${{ matrix.python }}
6766
coverage combine
68-
mv .coverage coverage_${{ matrix.env }}_${{ matrix.python }}.dat
67+
mv .coverage coverage_${{ matrix.env }}.dat
6968
- name: Uploading artifacts
7069
uses: actions/upload-artifact@v4
71-
if: matrix.python == '3.10'
70+
if: matrix.python == '3.12'
7271
with:
7372
name: test-artifacts-cpu-${{ matrix.env }}
7473
path: |
75-
data_3.10
76-
coverage_${{ matrix.env }}_3.10.dat
74+
data
75+
coverage_${{ matrix.env }}.dat
7776
7877
project_cpu_tests_linux:
7978
runs-on: ubuntu-latest
@@ -120,17 +119,16 @@ jobs:
120119
coverage run -m pytest --continue-on-collection-errors -v --durations=0 pySDC/projects/${{ matrix.env }}/tests
121120
- name: Make coverage report
122121
run: |
123-
mv data data_${{ matrix.python }}
124122
coverage combine
125-
mv .coverage coverage_${{ matrix.env }}_${{ matrix.python }}.dat
123+
mv .coverage coverage_${{ matrix.env }}.dat
126124
- name: Uploading artifacts
127125
uses: actions/upload-artifact@v4
128-
if: matrix.python == '3.10'
126+
if: matrix.python == '3.12'
129127
with:
130128
name: test-artifacts-project-${{ matrix.env }}
131129
path: |
132-
data_3.10
133-
coverage_${{ matrix.env }}_3.10.dat
130+
data
131+
coverage_${{ matrix.env }}.dat
134132
135133
user_libpressio_tests:
136134
runs-on: ubuntu-latest
@@ -160,14 +158,14 @@ jobs:
160158
161159
mv data data_libpressio
162160
coverage combine
163-
mv .coverage coverage_libpressio_3.10.dat
161+
mv .coverage coverage_libpressio.dat
164162
- name: Upload artifacts
165163
uses: actions/upload-artifact@v4
166164
with:
167165
name: test-artifacts-libpressio
168166
path: |
169167
data_libpressio
170-
coverage_libpressio_3.10.dat
168+
coverage_libpressio.dat
171169
172170
user_monodomain_tests_linux:
173171
runs-on: ubuntu-latest
@@ -182,7 +180,7 @@ jobs:
182180
with:
183181
environment-file: "pySDC/projects/Monodomain/etc/environment-monodomain.yml"
184182
create-args: >-
185-
python=3.10
183+
python=3.12
186184
- name: Compile C++ ionic models
187185
env:
188186
IONIC_MODELS_PATH: "pySDC/projects/Monodomain/problem_classes/ionicmodels/cpp"
@@ -201,11 +199,11 @@ jobs:
201199
run: |
202200
mv data data_monodomain
203201
coverage combine
204-
mv .coverage coverage_monodomain_3.10.dat
202+
mv .coverage coverage_monodomain.dat
205203
- name: Uploading artifacts
206204
uses: actions/upload-artifact@v4
207205
with:
208206
name: test-artifacts-monodomain
209207
path: |
210208
data_monodomain
211-
coverage_monodomain_3.10.dat
209+
coverage_monodomain.dat

.github/workflows/postprocess.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ jobs:
3232
github-token: ${{ secrets.ACTION_READ_TOKEN }}
3333
- name: Prepare artifacts
3434
run: |
35-
cp data_3.10/* data/.
36-
python -m coverage combine coverage_*_3.10.dat
35+
python -m coverage combine coverage_*.dat
3736
python -m coverage xml
3837
python -m coverage html
3938
- name: Generate Coverage badge

.gitlab-ci.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -129,22 +129,3 @@ benchmark:
129129
- >-
130130
pytest --continue-on-collection-errors -v pySDC/tests -m "benchmark"
131131
--benchmark-json=benchmarks/output.json
132-
133-
# bundle:
134-
# image: mambaorg/micromamba
135-
# stage: upload
136-
# artifacts:
137-
# paths:
138-
# - data
139-
# - coverage.xml
140-
# - benchmarks
141-
# - htmlcov
142-
# before_script:
143-
# - micromamba create --yes -f etc/environment-base.yml
144-
# - eval "$(micromamba shell hook --shell=bash)"
145-
# - micromamba activate pySDC
146-
# script:
147-
# - cp data_3.10/* data/.
148-
# - python -m coverage combine coverage_*_3.10.dat
149-
# - python -m coverage xml
150-
# - python -m coverage html

0 commit comments

Comments
 (0)