IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 00431932 authored by Remy Prechelt's avatar Remy Prechelt
Browse files

Switch to testing on Ubuntu with Python3.8

parent e5430809
No related branches found
No related tags found
1 merge request!317Output infrastructure and Python analysis library.
...@@ -618,14 +618,17 @@ sanity: ...@@ -618,14 +618,17 @@ sanity:
stage: python stage: python
tags: tags:
- corsika - corsika
before_script:
- apt-get update && apt-get install -y python3-pip
script: script:
- cd ${CI_PROJECT_DIR}/Python # change into the Python directory - cd ${CI_PROJECT_DIR}/Python # change into the Python directory
- pip install --user -e '.[test]' # install the package + test deps - pip3 install --user -e '.[test]' # install the package + test deps
- python -m mypy corsika - python3 --version
- python -m isort --atomic --check-only corsika tests - python3 -m mypy corsika
- python -m black -t py37 corsika tests - python3 -m isort --atomic --check-only corsika tests
- python -m flake8 corsika tests - python3 -m black -t py37 corsika tests
- python -m pytest --cov=corsika tests - python3 -m flake8 corsika tests
- python3 -m pytest --cov=corsika tests
- cd ${CI_PROJECT_DIR} # reset the directory - cd ${CI_PROJECT_DIR} # reset the directory
coverage: '/^TOTAL\s*\d+\s*\d+\s*(.*\%)/' coverage: '/^TOTAL\s*\d+\s*\d+\s*(.*\%)/'
<<<<<<< HEAD <<<<<<< HEAD
...@@ -638,23 +641,11 @@ sanity: ...@@ -638,23 +641,11 @@ sanity:
======= =======
>>>>>>> 927acbbd... Move 'read_hist' into 'corsika' and new CI. >>>>>>> 927acbbd... Move 'read_hist' into 'corsika' and new CI.
# we now configure the jobs for the three supported Python versions. We run # the default Python version Ubuntu 18.04 is Python3.8
# Python 3.7 for all commits but only run Python 3.6/3.8 before merging or if
# the MR is an explict Python MR with the 'Python' tag.
python-3.6:
extends: .python
image: python:3.6
rules:
- if: '$CI_MERGE_REQUEST_LABELS =~ /Python/'
- if: '$CI_MERGE_REQUEST_LABELS =~ /Code review finished/'
python-3.7:
extends: .python
image: python:3.7
python-3.8: python-3.8:
extends: .python extends: .python
image: python:3.8 image: corsika/devel:u-18.04
rules: dependencies:
- if: '$CI_MERGE_REQUEST_LABELS =~ /Python/' - build-u-18_04
- if: '$CI_MERGE_REQUEST_LABELS =~ /Code review finished/' cache:
key: "${CI_COMMIT_REF_SLUG}-gcc"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment