From 0fe1abb1ecccb404a67f1bf018a69a19a89c5cdd Mon Sep 17 00:00:00 2001 From: Justin Gilmer Date: Mon, 14 Jun 2021 14:36:45 -0500 Subject: [PATCH 1/3] Create test_notebooks.yml --- .github/workflows/test_notebooks.yml | 33 ++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/test_notebooks.yml diff --git a/.github/workflows/test_notebooks.yml b/.github/workflows/test_notebooks.yml new file mode 100644 index 0000000..8ea7a0f --- /dev/null +++ b/.github/workflows/test_notebooks.yml @@ -0,0 +1,33 @@ +# This workflow will install Python dependencies, run tests for a variety of python versions +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: Python package + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + schedule: + # daily at 06:15 + - cron: 15 06 * * * + + +jobs: + test: + runs-on: ubuntu-latest + name: test + steps: + - uses: actions/checkout@v2 + + - name: install mamba + uses: mamba-org/provision-with-micromamba@main + with: + environment-file: environment-test.yaml + environment-name: mbuild-tutorials + + # linux and osx + - name: run nbval + shell: bash -l {0} + run: | + python -m pytest --nbval-lax --verbose From 39c91bfc11162ae6db8b40f12ac1709085385a34 Mon Sep 17 00:00:00 2001 From: Justin Gilmer Date: Mon, 14 Jun 2021 14:42:37 -0500 Subject: [PATCH 2/3] Include sanitization config file for nbval --- .github/workflows/test_notebooks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_notebooks.yml b/.github/workflows/test_notebooks.yml index 8ea7a0f..6f556ed 100644 --- a/.github/workflows/test_notebooks.yml +++ b/.github/workflows/test_notebooks.yml @@ -30,4 +30,4 @@ jobs: - name: run nbval shell: bash -l {0} run: | - python -m pytest --nbval-lax --verbose + python -m pytest --nbval-lax --sanitize-with nbval_sanitize.cfg --verbose From 138df0849b27278c7684e4a2a122159b3cbf4b99 Mon Sep 17 00:00:00 2001 From: Justin Gilmer Date: Mon, 14 Jun 2021 14:44:54 -0500 Subject: [PATCH 3/3] Change file extension --- .github/workflows/test_notebooks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_notebooks.yml b/.github/workflows/test_notebooks.yml index 6f556ed..67ce7d6 100644 --- a/.github/workflows/test_notebooks.yml +++ b/.github/workflows/test_notebooks.yml @@ -23,7 +23,7 @@ jobs: - name: install mamba uses: mamba-org/provision-with-micromamba@main with: - environment-file: environment-test.yaml + environment-file: environment-test.yml environment-name: mbuild-tutorials # linux and osx