IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
corsika
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Air Shower Physics
corsika
Commits
56dc2f65
Commit
56dc2f65
authored
4 years ago
by
Remy Prechelt
Committed by
Ralf Ulrich
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add initial Python CI setup.
parent
cc68b005
No related branches found
No related tags found
1 merge request
!256
Add basic Python package skeleton.
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+34
-0
34 additions, 0 deletions
.gitlab-ci.yml
Python/README.md
+1
-1
1 addition, 1 deletion
Python/README.md
with
35 additions
and
1 deletion
.gitlab-ci.yml
+
34
−
0
View file @
56dc2f65
...
...
@@ -28,6 +28,7 @@ stages:
-
build
-
test
-
build_test
-
python
-
example
-
build_test_example
-
install
...
...
@@ -616,3 +617,36 @@ sanity:
untracked
:
true
policy
:
pull
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
This diff is collapsed.
Click to expand it.
Python/README.md
+
1
−
1
View file @
56dc2f65
...
...
@@ -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
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment