diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 568a0a1c8cae502493f3f2992d9c5153a5209e56..48ec5b71f0bcb3935f78662b4ea89896e479e482 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=sumpy/ c git+file://$(readlink -f ..)#egg=sumpy" 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 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1bfb6726ca6f4b7e9c8f07af13ec80283a4e5b8d..5e8b886af34ad10803d9cdf6b7d730400692595d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -33,7 +33,7 @@ Pytest POCL: reports: junit: test/pytest.xml -Pytest Titan X: +Pytest Titan V: script: - py_version=3 - export PYOPENCL_TEST=nvi:titan @@ -42,7 +42,7 @@ Pytest Titan X: - ". ./build-and-test-py-project.sh" tags: - python3 - - nvidia-titan-x + - nvidia-titan-v except: - tags allow_failure: True @@ -67,7 +67,7 @@ Pytest Conda: reports: junit: test/pytest.xml -Pytest POCL Titan X: +Pytest POCL Titan V: script: # Disable caching to ensure SymEngine code generation is exercised. - export SUMPY_NO_CACHE=1 @@ -77,7 +77,7 @@ Pytest POCL Titan X: - curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-and-test-py-project-within-miniconda.sh - ". ./build-and-test-py-project-within-miniconda.sh" tags: - - nvidia-titan-x + - nvidia-titan-v except: - tags artifacts: