From b3fcbe7cd53049d83b4f806aa20b21150ee163f2 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Wed, 17 Feb 2021 18:38:06 -0600 Subject: [PATCH] Add CI scripts to run examples --- .github/workflows/ci.yml | 18 ++++++++++++++++++ .gitlab-ci.yml | 11 +++++++++++ 2 files changed, 29 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 75e729a..98b0fcb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,6 +59,24 @@ jobs: build_py_project_in_venv build_docs + examples: + name: Examples Py3 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - + uses: actions/setup-python@v1 + with: + python-version: '3.x' + - name: "Main Script" + run: | + EXTRA_INSTALL="numpy pymbolic" + curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/ci-support.sh + . ./ci-support.sh + build_py_project_in_venv + rm -f examples/plot*.py + run_examples --no-require-main + downstream_tests: strategy: matrix: diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 35924ba..b2c17af 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,6 +12,17 @@ Python 3: reports: junit: test/pytest.xml +Examples: + script: | + EXTRA_INSTALL="numpy pymbolic" + curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/ci-support.sh + . ./ci-support.sh + build_py_project_in_venv + rm -f examples/plot*.py + run_examples --no-require-main + tags: + - python3 + Documentation: script: - EXTRA_INSTALL="numpy scipy" -- GitLab