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
2c6be6d0
Commit
2c6be6d0
authored
1 year ago
by
Alan Coleman
Browse files
Options
Downloads
Patches
Plain Diff
Add python examples to CI
parent
f376ce0c
No related branches found
No related tags found
1 merge request
!604
"Need for writing first interaction information"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+21
-1
21 additions, 1 deletion
.gitlab-ci.yml
with
21 additions
and
1 deletion
.gitlab-ci.yml
+
21
−
1
View file @
2c6be6d0
...
@@ -222,7 +222,7 @@ build_test-clang-14:
...
@@ -222,7 +222,7 @@ build_test-clang-14:
junit
:
junit
:
-
${CI_PROJECT_DIR}/build/test_outputs/junit*.xml
-
${CI_PROJECT_DIR}/build/test_outputs/junit*.xml
paths
:
paths
:
-
${CI_PROJECT_DIR}/build/build_examples/example_outputs
#python tests need this
-
${CI_PROJECT_DIR}/build/build_examples/example_outputs
#python tests
/examples
need this
-
${CI_PROJECT_DIR}/build/test_outputs/junit*.xml
-
${CI_PROJECT_DIR}/build/test_outputs/junit*.xml
-
${CI_PROJECT_DIR}/build/CMakeCache.txt
#python tests need this
-
${CI_PROJECT_DIR}/build/CMakeCache.txt
#python tests need this
-
${CI_PROJECT_DIR}/build/bin
#python tests need this
-
${CI_PROJECT_DIR}/build/bin
#python tests need this
...
@@ -409,3 +409,23 @@ python-tests:
...
@@ -409,3 +409,23 @@ python-tests:
paths
:
paths
:
-
${CI_PROJECT_DIR}/python/python-test.log
-
${CI_PROJECT_DIR}/python/python-test.log
allow_failure
:
false
allow_failure
:
false
python-examples
:
extends
:
.pthon
image
:
corsika/devel:u-22.04
needs
:
-
job
:
build_test_example-u-22_04
artifacts
:
true
artifacts
:
when
:
always
expire_in
:
1 month
paths
:
-
${CI_PROJECT_DIR}/python/examples/example_plots
script
:
-
export EXAMPLE_SHOWER_DIR=${CI_PROJECT_DIR}/build/build_examples/example_outputs/radio_em_shower_outputs
-
cd ${CI_PROJECT_DIR}/python
-
pip3 install --user -e '.[test,examples]'
-
cd ${CI_PROJECT_DIR}/python/examples
-
python3 particle_distribution.py --input-dir $EXAMPLE_SHOWER_DIR
-
python3 shower_profile.py --input-dir $EXAMPLE_SHOWER_DIR
-
python3 radio_emission.py --input-dir $EXAMPLE_SHOWER_DIR
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