IAP GITLAB

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

Add initial Python CI setup.

parent 872fdc78
No related branches found
No related tags found
No related merge requests found
Pipeline #2271 canceled
...@@ -28,6 +28,7 @@ stages: ...@@ -28,6 +28,7 @@ stages:
- build - build
- test - test
- build_test - build_test
- python
- example - example
- build_test_example - build_test_example
- install - install
...@@ -616,3 +617,36 @@ sanity: ...@@ -616,3 +617,36 @@ sanity:
untracked: true untracked: true
policy: pull policy: pull
key: "${CI_COMMIT_REF_SLUG}-gcc" key: "${CI_COMMIT_REF_SLUG}-gcc"
##########################################################
# template for all Python jobs
.python:
stage: python
tags:
- corsika
script:
- cd ${CI_PROJECT_DIR}/Python # change into the Python directory
- pip install --user -e '.[test]' # install the package + test deps
- make all 2&>1 | tee python-test.log # this runs all of the Python tests
- cd ${CI_PROJECT_DIR} # reset the directory
artifacts:
when: always
expire_in: 1 year
paths:
- ${CI_PROJECT_DIR}/Python/python-test.log
# we now configure the jobs for the three
# supported Python versions
python-3.6:
extends: .python
image: python:3.6
python-3.7:
extends: .python
image: python:3.7
python-3.8:
extends: .python
image: python:3.8
...@@ -25,7 +25,7 @@ If you wish to develop new features in `corsika`, you will also need to install ...@@ -25,7 +25,7 @@ If you wish to develop new features in `corsika`, you will also need to install
some additional dependencies so you can run our unit tests. These can be some additional dependencies so you can run our unit tests. These can be
installed with installed with
pip install --user -e .[test] pip install --user -e '.[test]'
Once that is completed, you can run the unit tests directory from the `corsika` directory Once that is completed, you can run the unit tests directory from the `corsika` directory
......
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