diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c86e19fdb3627bea50cd0c8eb92b289a0e6a1a13..726bdf6b5c92d3af640f4e43e0135b39d1d96058 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -74,4 +74,34 @@ jobs: build_py_project_in_venv build_docs + downstream_tests: + strategy: + matrix: + downstream_project: [loopy, grudge, pytential, pytato] + 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: | + git clone "https://github.com/inducer/$DOWNSTREAM_PROJECT.git" + cd "$DOWNSTREAM_PROJECT" + echo "*** $DOWNSTREAM_PROJECT version: $(git rev-parse --short HEAD)" + + sed -i "/egg=pymbolic/ c git+file://$(readlink -f ..)#egg=pymbolic" 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)'" + + sed -i "/mpi4py/ d" requirements.txt + + 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