From 9d6bdc844abfa94515d658a71a61b104fc684dca Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Sun, 14 Feb 2021 15:21:33 -0600 Subject: [PATCH] Add downstream CI jobs on Github --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c86e19f..726bdf6 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 -- GitLab