Skip to content

Commit

Permalink
Merge pull request #114 from inducer/downstream-ci
Browse files Browse the repository at this point in the history
Add CI jobs for downstream CI
  • Loading branch information
inducer committed Feb 11, 2021
2 parents 67e4bf9 + 85326be commit 535f20a
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,50 @@ jobs:
build_docs
downstream_tests:
strategy:
matrix:
# Reinstate when
# https://github.com/illinois-ceesd/mirgecom/issues/212
# is fixed:
# downstream_project: [grudge, pytential, mirgecom]

downstream_project: [grudge, pytential]
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=meshmode/ c git+file://$(readlink -f ..)#egg=meshmode" requirements.txt
export CONDA_ENVIRONMENT=.test-conda-env-py3.yml
# 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
else
sed -i "/mpi4py/ d" requirements.txt
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
test_py_project
# vim: sw=4
1 change: 1 addition & 0 deletions .test-conda-env-py3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ channels:
dependencies:
- python=3
- git
- libhwloc=2
- numpy
- pocl
- mako
Expand Down

0 comments on commit 535f20a

Please sign in to comment.