Skip to content

Commit 531a800

Browse files
committed
This could actually work now!
1 parent ddf2b23 commit 531a800

File tree

1 file changed

+39
-39
lines changed

1 file changed

+39
-39
lines changed

.gitlab-ci.yml

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,27 @@ stages:
33
- benchmark
44
- upload
55

6-
#test:
7-
# image: mambaorg/micromamba
8-
# stage: test
9-
# parallel:
10-
# matrix:
11-
# - PYTHON: [ '3.7', '3.8', '3.9', '3.10' ]
12-
# NAME: ['base', 'fenics', 'petsc', 'mpi4py']
13-
# artifacts:
14-
# name: "$NAME_$PYTHON"
15-
# paths:
16-
# - coverage_${NAME}_3.10.dat
17-
# - data_3.10
18-
# before_script:
19-
# - micromamba create --yes python=$PYTHON -f etc/environment-$NAME.yml
20-
# - eval "$(micromamba shell hook --shell=bash)"
21-
# - micromamba activate pySDC
22-
# - micromamba install --yes -c conda-forge openssh
23-
# script:
24-
# - coverage run --data-file=coverage_${NAME}_${PYTHON}.dat -m pytest --continue-on-collection-errors -v --durations=0 pySDC/tests -m ${NAME}
25-
# - mv data data_${PYTHON}
26-
# - cat coverage_${NAME}_${PYTHON}.dat
6+
test:
7+
image: mambaorg/micromamba
8+
stage: test
9+
parallel:
10+
matrix:
11+
- PYTHON: [ '3.7', '3.8', '3.9', '3.10' ]
12+
NAME: ['base', 'fenics', 'petsc', 'mpi4py']
13+
artifacts:
14+
name: "$NAME_$PYTHON"
15+
paths:
16+
- coverage_${NAME}_3.10.dat
17+
- data_3.10
18+
before_script:
19+
- micromamba create --yes python=$PYTHON -f etc/environment-$NAME.yml
20+
- eval "$(micromamba shell hook --shell=bash)"
21+
- micromamba activate pySDC
22+
- micromamba install --yes -c conda-forge openssh
23+
script:
24+
- coverage run --data-file=coverage_${NAME}_${PYTHON}.dat -m pytest --continue-on-collection-errors -v --durations=0 pySDC/tests -m ${NAME}
25+
- mv data data_${PYTHON}
26+
- cat coverage_${NAME}_${PYTHON}.dat
2727

2828
#test_kit:
2929
# image: rcaspart/micromamba-cuda
@@ -81,24 +81,24 @@ test_kit_bare:
8181
- chmod +rwx data_${PYTHON}
8282
- cat coverage_cupy_${PYTHON}.dat
8383

84-
#benchmark:
85-
# image: mambaorg/micromamba
86-
# stage: benchmark
87-
# rules:
88-
# - if: $CI_COMMIT_MESSAGE !~ /.*\[CI-no-benchmarks\]/
89-
# artifacts:
90-
# paths:
91-
# - benchmarks
92-
# before_script:
93-
# - micromamba create --yes -f etc/environment-base.yml
94-
# - eval "$(micromamba shell hook --shell=bash)"
95-
# - micromamba activate pySDC
96-
# - micromamba install -c conda-forge git
97-
# - git config --global --add safe.directory '*'
98-
# script:
99-
# - mkdir -p benchmarks
100-
# - pytest --continue-on-collection-errors -v pySDC/tests -m "benchmark" --benchmark-json=benchmarks/output.json
101-
#
84+
benchmark:
85+
image: mambaorg/micromamba
86+
stage: benchmark
87+
rules:
88+
- if: $CI_COMMIT_MESSAGE !~ /.*\[CI-no-benchmarks\]/
89+
artifacts:
90+
paths:
91+
- benchmarks
92+
before_script:
93+
- micromamba create --yes -f etc/environment-base.yml
94+
- eval "$(micromamba shell hook --shell=bash)"
95+
- micromamba activate pySDC
96+
- micromamba install -c conda-forge git
97+
- git config --global --add safe.directory '*'
98+
script:
99+
- mkdir -p benchmarks
100+
- pytest --continue-on-collection-errors -v pySDC/tests -m "benchmark" --benchmark-json=benchmarks/output.json
101+
102102
#benchmark_kit:
103103
# image: rcaspart/micromamba
104104
# stage: benchmark

0 commit comments

Comments
 (0)