Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
grudge
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Alexandru Fikl
grudge
Commits
e0564024
Unverified
Commit
e0564024
authored
3 years ago
by
Andreas Klöckner
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #57 from matthiasdiener/ci-downstream
test downstream projects
parents
c4a57b81
610c4106
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/ci.yml
+38
-1
38 additions, 1 deletion
.github/workflows/ci.yml
with
38 additions
and
1 deletion
.github/workflows/ci.yml
+
38
−
1
View file @
e0564024
...
...
@@ -65,6 +65,43 @@ jobs:
build_py_project_in_conda_env
build_docs
# vim: sw=4
downstream_tests
:
strategy
:
matrix
:
downstream_project
:
[
mirgecom
]
name
:
Tests for downstream project ${{ matrix.downstream_project }}
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2
-
name
:
"
Main
Script"
env
:
DOWNSTREAM_PROJECT
:
${{ matrix.downstream_project }}
run
:
|
if test "$DOWNSTREAM_PROJECT" = "mirgecom"; then
git clone "https://github.com/illinois-ceesd/$DOWNSTREAM_PROJECT.git"
else
git clone "https://github.com/inducer/$DOWNSTREAM_PROJECT.git"
fi
cd "$DOWNSTREAM_PROJECT"
echo "*** $DOWNSTREAM_PROJECT version: $(git rev-parse --short HEAD)"
sed -i "/egg=grudge/ c git+file://$(readlink -f ..)#egg=grudge" requirements.txt
# Avoid slow or complicated tests in downstream projects
export PYTEST_ADDOPTS="-k 'not (slowtest or octave or mpi)'"
if test "$DOWNSTREAM_PROJECT" = "mirgecom"; then
# can't turn off MPI in mirgecom
sudo apt-get update
sudo apt-get install openmpi-bin libopenmpi-dev
export CONDA_ENVIRONMENT=conda-env.yml
else
sed -i "/mpi4py/ d" requirements.txt
export CONDA_ENVIRONMENT=.test-conda-env-py3.yml
fi
curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/ci-support.sh
. ./ci-support.sh
build_py_project_in_conda_env
export CISUPPORT_PARALLEL_PYTEST=no
test_py_project
# vim: sw=4
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