diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 568a0a1c8cae502493f3f2992d9c5153a5209e56..c107673e43ab5a375a65348559d83b1473cbfe76 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -75,4 +75,29 @@ jobs: build_py_project_in_conda_env run_examples + + downstream_tests: + strategy: + matrix: + downstream_project: [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: | + git clone "https://github.com/inducer/$DOWNSTREAM_PROJECT.git" + cd "$DOWNSTREAM_PROJECT" + echo "*** $DOWNSTREAM_PROJECT version: $(git rev-parse --short HEAD)" + sed -i "/egg=boxtree/ c git+file://$(readlink -f ..)#egg=boxtree" 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)'" + 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