diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8b57bb3b95d1549521f8cb029f9d7e544e977b52..241c74686e52c510b237b11f52c5343f962a8852 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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