Skip to content
Snippets Groups Projects

Upgrade SymPy Version & Extend CI

Merged Frederik Hennig requested to merge da15siwa/lbmpy:sympy-and-ci into master
Viewing commit 4e3d4b43
Next
Show latest version
2 files
+ 78
47
Preferences
Compare changes
Files
2
+ 77
46
stages:
stages:
- pretest
- pretest
- test
- test
 
- nightly
- deploy
- deploy
 
# -------------------------- Templates ------------------------------------------------------------------------------------
 
 
# Base configuration for jobs meant to run at every commit
 
.every-commit:
 
rules:
 
- if: $CI_PIPELINE_SOURCE != "schedule"
 
 
# Base configuration for jobs meant to run at a schedule
 
.scheduled:
 
rules:
 
- if: $CI_PIPELINE_SOURCE == "schedule"
# -------------------------- Pre Tests --------------------------------------------------------------------------------
# -------------------------- Pre Tests --------------------------------------------------------------------------------
# Normal test - runs on every commit all but "long run" tests
# Normal test - runs on every commit all but "long run" tests
tests-and-coverage:
tests-and-coverage:
stage: pretest
stage: pretest
except:
extends: .every-commit
variables:
- $ENABLE_NIGHTLY_BUILDS
image: i10git.cs.fau.de:5005/pycodegen/pycodegen/full
image: i10git.cs.fau.de:5005/pycodegen/pycodegen/full
script:
script:
# - pip install sympy --upgrade
# - pip install sympy --upgrade
@@ -62,9 +72,7 @@ tests-and-coverage-with-longrun:
@@ -62,9 +72,7 @@ tests-and-coverage-with-longrun:
minimal-conda:
minimal-conda:
stage: pretest
stage: pretest
except:
extends: .every-commit
variables:
- $ENABLE_NIGHTLY_BUILDS
image: i10git.cs.fau.de:5005/pycodegen/pycodegen/minimal_conda
image: i10git.cs.fau.de:5005/pycodegen/pycodegen/minimal_conda
script:
script:
- pip install git+https://gitlab-ci-token:${CI_JOB_TOKEN}@i10git.cs.fau.de/pycodegen/pystencils.git@master#egg=pystencils
- pip install git+https://gitlab-ci-token:${CI_JOB_TOKEN}@i10git.cs.fau.de/pycodegen/pystencils.git@master#egg=pystencils
@@ -76,9 +84,7 @@ minimal-conda:
@@ -76,9 +84,7 @@ minimal-conda:
# Linter for code formatting
# Linter for code formatting
flake8-lint:
flake8-lint:
stage: pretest
stage: pretest
except:
extends: .every-commit
variables:
- $ENABLE_NIGHTLY_BUILDS
image: i10git.cs.fau.de:5005/pycodegen/pycodegen/full
image: i10git.cs.fau.de:5005/pycodegen/pycodegen/full
script:
script:
- flake8 src/lbmpy
- flake8 src/lbmpy
@@ -91,9 +97,7 @@ flake8-lint:
@@ -91,9 +97,7 @@ flake8-lint:
# pipeline with latest python version
# pipeline with latest python version
latest-python:
latest-python:
stage: test
stage: test
except:
extends: .every-commit
variables:
- $ENABLE_NIGHTLY_BUILDS
image: i10git.cs.fau.de:5005/pycodegen/pycodegen/latest_python
image: i10git.cs.fau.de:5005/pycodegen/pycodegen/latest_python
before_script:
before_script:
- pip install git+https://gitlab-ci-token:${CI_JOB_TOKEN}@i10git.cs.fau.de/pycodegen/pystencils.git@master#egg=pystencils
- pip install git+https://gitlab-ci-token:${CI_JOB_TOKEN}@i10git.cs.fau.de/pycodegen/pystencils.git@master#egg=pystencils
@@ -133,9 +137,7 @@ latest-python:
@@ -133,9 +137,7 @@ latest-python:
minimal-sympy-master:
minimal-sympy-master:
stage: test
stage: test
except:
extends: .every-commit
variables:
- $ENABLE_NIGHTLY_BUILDS
image: i10git.cs.fau.de:5005/pycodegen/pycodegen/minimal_conda
image: i10git.cs.fau.de:5005/pycodegen/pycodegen/minimal_conda
before_script:
before_script:
- pip install -e .
- pip install -e .
@@ -151,9 +153,7 @@ minimal-sympy-master:
@@ -151,9 +153,7 @@ minimal-sympy-master:
ubuntu:
ubuntu:
stage: test
stage: test
except:
extends: .every-commit
variables:
- $ENABLE_NIGHTLY_BUILDS
image: i10git.cs.fau.de:5005/pycodegen/pycodegen/ubuntu
image: i10git.cs.fau.de:5005/pycodegen/pycodegen/ubuntu
before_script:
before_script:
# - apt-get -y remove python3-sympy
# - apt-get -y remove python3-sympy
@@ -175,45 +175,76 @@ ubuntu:
@@ -175,45 +175,76 @@ ubuntu:
reports:
reports:
junit: report.xml
junit: report.xml
pycodegen-integration:
# pycodegen-integration:
image: i10git.cs.fau.de:5005/pycodegen/pycodegen/full
# image: i10git.cs.fau.de:5005/pycodegen/pycodegen/full
stage: test
# stage: test
when: manual
# when: manual
allow_failure: true
# allow_failure: true
 
# script:
 
# - env
 
# - pip list
 
# - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@i10git.cs.fau.de/pycodegen/pycodegen.git
 
# - cd pycodegen
 
# - git submodule sync --recursive
 
# - git submodule update --init --recursive
 
# - git submodule foreach git fetch origin # compare the latest master version!
 
# - git submodule foreach git reset --hard origin/master
 
# - cd lbmpy
 
# - git remote add test $CI_REPOSITORY_URL
 
# - git fetch test
 
# - git reset --hard $CI_COMMIT_SHA
 
# - cd ..
 
# - pip install -e pystencils/
 
# - pip install -e lbmpy/
 
# - ./install_walberla.sh
 
# # build all integration tests
 
# - cd walberla/build/
 
# - make -j $NUM_CORES MicroBenchmarkGpuLbm LbCodeGenerationExample
 
# - cd apps/benchmarks/UniformGridGPU
 
# - make -j $NUM_CORES
 
# - cd ../UniformGridCPU
 
# - make -j $NUM_CORES
 
 
# tags:
 
# - docker
 
# - cuda11
 
# - AVX
 
 
 
# -------------------- Scheduled Tasks --------------------------------------------------------------------------
 
 
 
nightly-sympy:
 
stage: nightly
 
extends: .scheduled
 
image: i10git.cs.fau.de:5005/pycodegen/pycodegen/latest_python
 
before_script:
 
- pip install -e .
 
- pip install git+https://gitlab-ci-token:${CI_JOB_TOKEN}@i10git.cs.fau.de/pycodegen/pystencils.git@master#egg=pystencils
 
- pip install --upgrade --pre sympy
script:
script:
- env
- env
- pip list
- pip list
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@i10git.cs.fau.de/pycodegen/pycodegen.git
- export NUM_CORES=$(nproc --all)
- cd pycodegen
- mkdir -p ~/.config/matplotlib
- git submodule sync --recursive
- echo "backend:template" > ~/.config/matplotlib/matplotlibrc
- git submodule update --init --recursive
- mkdir public
- git submodule foreach git fetch origin # compare the latest master version!
- pytest -v -n $NUM_CORES -m "not longrun" --junitxml=report.xml
- git submodule foreach git reset --hard origin/master
- cd lbmpy
- git remote add test $CI_REPOSITORY_URL
- git fetch test
- git reset --hard $CI_COMMIT_SHA
- cd ..
- pip install -e pystencils/
- pip install -e lbmpy/
- ./install_walberla.sh
# build all integration tests
- cd walberla/build/
- make -j $NUM_CORES MicroBenchmarkGpuLbm LbCodeGenerationExample
- cd apps/benchmarks/UniformGridGPU
- make -j $NUM_CORES
- cd ../UniformGridCPU
- make -j $NUM_CORES
tags:
tags:
- docker
- docker
- cuda11
- AVX
- AVX
 
- cuda
 
artifacts:
 
when: always
 
reports:
 
junit: report.xml
 
# -------------------- Documentation and deploy ------------------------------------------------------------------------
# -------------------- Documentation and deploy ------------------------------------------------------------------------
build-documentation:
build-documentation:
stage: test
stage: test
 
extends: .every-commit
image: i10git.cs.fau.de:5005/pycodegen/pycodegen/documentation
image: i10git.cs.fau.de:5005/pycodegen/pycodegen/documentation
before_script:
before_script:
- pip install -e .
- pip install -e .