Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
dumux-repositories
dumux
Commits
a9389edc
Commit
a9389edc
authored
3 years ago
by
Timo Koch
Browse files
Options
Downloads
Patches
Plain Diff
[ci] Add test selection for Python tests
parent
7fa86e86
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2802
[ci] Add test selection for Python tests
Pipeline
#7863
passed
3 years ago
Stage: trigger
Stage: downstream modules
+2
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci/default.yml
+17
-3
17 additions, 3 deletions
.gitlab-ci/default.yml
with
17 additions
and
3 deletions
.gitlab-ci/default.yml
+
17
−
3
View file @
a9389edc
...
...
@@ -81,10 +81,12 @@ select tests:
echo "No reference information given."
echo "Skipping test selection, build/test stages will consider all tests!"
touch affectedtests.json
touch changedfiles.txt
fi
artifacts
:
paths
:
-
affectedtests.json
-
changedfiles.txt
expire_in
:
3 hours
needs
:
-
job
:
configure
...
...
@@ -145,9 +147,21 @@ test python:
script
:
-
source bin/testing/ci-setup-python-env.sh
-
|
pushd build-cmake
ctest --output-on-failure -L python
popd
if ([ ! -s changedfiles.txt ] || grep -q python "changedfiles.txt"); then
if [ ! -s changedfiles.txt ]; then
echo "Skipping test selection: considering all Python tests."
else
echo "Detected changes in the Python bindings/Python code: considering all Python tests."
fi
source bin/testing/ci-setup-python-env.sh
pushd build-cmake
ctest --output-on-failure -L python
popd
else
echo "No changes in the Python bindings/Python code detected: skipping tests."
fi
needs
:
-
job
:
configure
artifacts
:
true
-
job
:
select tests
artifacts
:
true
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