From 03b833f80dbbf1ea600f679bf032ad7781808fd4 Mon Sep 17 00:00:00 2001 From: Brady Planden Date: Sat, 13 Apr 2024 09:01:02 +0100 Subject: [PATCH 01/14] Add nightly pybamm@develop workflow --- .../workflows/nightly_dependency_tests.yaml | 162 ++++++++++++++++++ 1 file changed, 162 insertions(+) create mode 100644 .github/workflows/nightly_dependency_tests.yaml diff --git a/.github/workflows/nightly_dependency_tests.yaml b/.github/workflows/nightly_dependency_tests.yaml new file mode 100644 index 00000000..a708043f --- /dev/null +++ b/.github/workflows/nightly_dependency_tests.yaml @@ -0,0 +1,162 @@ +name: PyBOP + +on: + workflow_dispatch: + push: + +concurrency: + # github.workflow: name of the workflow, so that we don't cancel other workflows + # github.event.pull_request.number || github.ref: pull request number or branch name if not a pull request + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + # Cancel in-progress runs when a new workflow with the same group name is triggered + # This avoids workflow runs on both pushes and PRs + cancel-in-progress: true + +jobs: + style: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: 3.12 + + - name: Check formatting with pre-commit + run: | + python -m pip install pre-commit + pre-commit run ruff + + update: + needs: style + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.12 + - name: Update PyBaMM version to `develop` + uses: snok/install-poetry@v1 + - name: Update version + run: | + poetry add pybamm@git+https://github.com/pybamm-team/pybamm.git#develop + + integration_tests: + needs: [style, update] + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest, macos-latest, macos-14] + python-version: ["3.12"] + + name: Integration tests (${{ matrix.os }} / Python ${{ matrix.python-version }}) + + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip nox + + - name: Integration tests + run: | + nox -s integration + + unit_tests: + needs: style + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + python-version: ["3.9", "3.10", "3.11", "3.12"] + exclude: # We run the coverage tests on Ubuntu with Python 3.12 + - os: ubuntu-latest + python-version: "3.12" + # Include MacOS M-series Runners + include: + - os: macos-14 + python-version: "3.10" + - os: macos-14 + python-version: "3.11" + - os: macos-14 + python-version: "3.12" + + name: Unit tests (${{ matrix.os }} / Python ${{ matrix.python-version }}) + + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip nox + + - name: Unit tests + run: | + nox -s unit + + example_tests: + needs: style + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest, macos-latest, macos-14] + python-version: ["3.12"] + + name: Test examples (${{ matrix.os }} / Python ${{ matrix.python-version }}) + + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip nox + + - name: Run examples + run: | + nox -s examples + + # Runs only on Ubuntu with Python 3.12 + check_coverage: + needs: style + runs-on: ubuntu-latest + strategy: + fail-fast: false + name: Coverage tests (ubuntu-latest / Python 3.12) + + steps: + - name: Check out PyBOP repository + uses: actions/checkout@v4 + - name: Set up Python 3.12 + id: setup-python + uses: actions/setup-python@v4 + with: + python-version: 3.12 + cache: 'pip' + cache-dependency-path: setup.py + + - name: Install dependencies + run: | + python -m pip install --upgrade pip nox + - name: Run coverage tests for Ubuntu with Python 3.12 and generate report + run: nox -s coverage + + - name: Upload coverage report + uses: codecov/codecov-action@v4 + with: + fail_ci_if_error: true + verbose: true + token: ${{ secrets.CODECOV_TOKEN }} From 11aeef455bc6920b2109804e351da4f98a01011e Mon Sep 17 00:00:00 2001 From: Brady Planden Date: Sat, 13 Apr 2024 09:04:42 +0100 Subject: [PATCH 02/14] update CI name --- .github/workflows/nightly_dependency_tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nightly_dependency_tests.yaml b/.github/workflows/nightly_dependency_tests.yaml index a708043f..cc96e9c1 100644 --- a/.github/workflows/nightly_dependency_tests.yaml +++ b/.github/workflows/nightly_dependency_tests.yaml @@ -1,4 +1,4 @@ -name: PyBOP +name: Nightly dependencies@develop on: workflow_dispatch: From d9f133cd0fccedc4673bd204bf470cc3f2e96fc2 Mon Sep 17 00:00:00 2001 From: Brady Planden Date: Sat, 13 Apr 2024 09:41:06 +0100 Subject: [PATCH 03/14] Updt for pip management, udpt CI names --- .../workflows/nightly_dependency_tests.yaml | 38 ++++++++++--------- .github/workflows/test_on_push.yaml | 2 +- 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/.github/workflows/nightly_dependency_tests.yaml b/.github/workflows/nightly_dependency_tests.yaml index cc96e9c1..ff5f4192 100644 --- a/.github/workflows/nightly_dependency_tests.yaml +++ b/.github/workflows/nightly_dependency_tests.yaml @@ -27,24 +27,28 @@ jobs: python -m pip install pre-commit pre-commit run ruff - update: - needs: style + update-dependency: runs-on: ubuntu-latest + steps: - - name: Checkout repository - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: 3.12 - - name: Update PyBaMM version to `develop` - uses: snok/install-poetry@v1 - - name: Update version - run: | - poetry add pybamm@git+https://github.com/pybamm-team/pybamm.git#develop + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: 3.12 + + # Update for pybamm develop + # with fix for pybtex optional dependency + - name: Update dependency version + run: | + python -m pip uninstall pybamm + python -m pip install pybtex + python -m pip install git+https://github.com/pybamm-team/PyBaMM.git@develop integration_tests: - needs: [style, update] + needs: [style, update-dependency] runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -69,7 +73,7 @@ jobs: nox -s integration unit_tests: - needs: style + needs: [style, update-dependency] runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -105,7 +109,7 @@ jobs: nox -s unit example_tests: - needs: style + needs: [style, update-dependency] runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -131,7 +135,7 @@ jobs: # Runs only on Ubuntu with Python 3.12 check_coverage: - needs: style + needs: [style, update-dependency] runs-on: ubuntu-latest strategy: fail-fast: false diff --git a/.github/workflows/test_on_push.yaml b/.github/workflows/test_on_push.yaml index 0bd346d1..80bff2cc 100644 --- a/.github/workflows/test_on_push.yaml +++ b/.github/workflows/test_on_push.yaml @@ -1,4 +1,4 @@ -name: PyBOP +name: Pull Request on: workflow_dispatch: From c239514cfaa6f5f6b13e3fc451ded3919d942c06 Mon Sep 17 00:00:00 2001 From: Brady Planden Date: Sat, 13 Apr 2024 09:54:43 +0100 Subject: [PATCH 04/14] nightly_dependency_tests.yaml nox -> pytest --- .../workflows/nightly_dependency_tests.yaml | 120 ++---------------- 1 file changed, 9 insertions(+), 111 deletions(-) diff --git a/.github/workflows/nightly_dependency_tests.yaml b/.github/workflows/nightly_dependency_tests.yaml index ff5f4192..2fd15fa6 100644 --- a/.github/workflows/nightly_dependency_tests.yaml +++ b/.github/workflows/nightly_dependency_tests.yaml @@ -27,62 +27,14 @@ jobs: python -m pip install pre-commit pre-commit run ruff - update-dependency: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Set up Python - uses: actions/setup-python@v3 - with: - python-version: 3.12 - - # Update for pybamm develop - # with fix for pybtex optional dependency - - name: Update dependency version - run: | - python -m pip uninstall pybamm - python -m pip install pybtex - python -m pip install git+https://github.com/pybamm-team/PyBaMM.git@develop - - integration_tests: - needs: [style, update-dependency] - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: [ubuntu-latest, windows-latest, macos-latest, macos-14] - python-version: ["3.12"] - - name: Integration tests (${{ matrix.os }} / Python ${{ matrix.python-version }}) - - steps: - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip nox - - - name: Integration tests - run: | - nox -s integration - - unit_tests: - needs: [style, update-dependency] + Tests: + needs: style runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] python-version: ["3.9", "3.10", "3.11", "3.12"] - exclude: # We run the coverage tests on Ubuntu with Python 3.12 - - os: ubuntu-latest - python-version: "3.12" # Include MacOS M-series Runners include: - os: macos-14 @@ -92,7 +44,7 @@ jobs: - os: macos-14 python-version: "3.12" - name: Unit tests (${{ matrix.os }} / Python ${{ matrix.python-version }}) + name: Test Suite (${{ matrix.os }} / Python ${{ matrix.python-version }}) steps: - uses: actions/checkout@v4 @@ -102,65 +54,11 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | - python -m pip install --upgrade pip nox + python -m pip install -e .[all] + python -m pip uninstall pybamm + python -m pip install git+https://github.com/pybamm-team/PyBaMM.git@develop + python -m pip install pybtex - - name: Unit tests + - name: Run test suite run: | - nox -s unit - - example_tests: - needs: [style, update-dependency] - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: [ubuntu-latest, windows-latest, macos-latest, macos-14] - python-version: ["3.12"] - - name: Test examples (${{ matrix.os }} / Python ${{ matrix.python-version }}) - - steps: - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip nox - - - name: Run examples - run: | - nox -s examples - - # Runs only on Ubuntu with Python 3.12 - check_coverage: - needs: [style, update-dependency] - runs-on: ubuntu-latest - strategy: - fail-fast: false - name: Coverage tests (ubuntu-latest / Python 3.12) - - steps: - - name: Check out PyBOP repository - uses: actions/checkout@v4 - - name: Set up Python 3.12 - id: setup-python - uses: actions/setup-python@v4 - with: - python-version: 3.12 - cache: 'pip' - cache-dependency-path: setup.py - - - name: Install dependencies - run: | - python -m pip install --upgrade pip nox - - name: Run coverage tests for Ubuntu with Python 3.12 and generate report - run: nox -s coverage - - - name: Upload coverage report - uses: codecov/codecov-action@v4 - with: - fail_ci_if_error: true - verbose: true - token: ${{ secrets.CODECOV_TOKEN }} + pytest --integration --unit --nbmake --examples From 66b6e5dc89ffc120025ae137abae18d309beff5b Mon Sep 17 00:00:00 2001 From: Brady Planden Date: Sat, 13 Apr 2024 10:00:59 +0100 Subject: [PATCH 05/14] bugfix pybamm uninstall --- .github/workflows/nightly_dependency_tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nightly_dependency_tests.yaml b/.github/workflows/nightly_dependency_tests.yaml index 2fd15fa6..3de1eacf 100644 --- a/.github/workflows/nightly_dependency_tests.yaml +++ b/.github/workflows/nightly_dependency_tests.yaml @@ -55,7 +55,7 @@ jobs: - name: Install dependencies run: | python -m pip install -e .[all] - python -m pip uninstall pybamm + python -m pip uninstall -y pybamm python -m pip install git+https://github.com/pybamm-team/PyBaMM.git@develop python -m pip install pybtex From 7c1bd0a7900c8c96c383e52f96b763ffe1b33351 Mon Sep 17 00:00:00 2001 From: Brady Planden Date: Sat, 13 Apr 2024 10:03:35 +0100 Subject: [PATCH 06/14] add dev optional pybop install --- .github/workflows/nightly_dependency_tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nightly_dependency_tests.yaml b/.github/workflows/nightly_dependency_tests.yaml index 3de1eacf..000ba937 100644 --- a/.github/workflows/nightly_dependency_tests.yaml +++ b/.github/workflows/nightly_dependency_tests.yaml @@ -54,7 +54,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | - python -m pip install -e .[all] + python -m pip install -e .[all,dev] python -m pip uninstall -y pybamm python -m pip install git+https://github.com/pybamm-team/PyBaMM.git@develop python -m pip install pybtex From cfca062ec12f3f2880e2b806778fa1fd39e10324 Mon Sep 17 00:00:00 2001 From: Brady Planden Date: Sat, 13 Apr 2024 10:12:58 +0100 Subject: [PATCH 07/14] split tests, update pytest call for windows --- .github/workflows/nightly_dependency_tests.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly_dependency_tests.yaml b/.github/workflows/nightly_dependency_tests.yaml index 000ba937..62f3c164 100644 --- a/.github/workflows/nightly_dependency_tests.yaml +++ b/.github/workflows/nightly_dependency_tests.yaml @@ -59,6 +59,14 @@ jobs: python -m pip install git+https://github.com/pybamm-team/PyBaMM.git@develop python -m pip install pybtex - - name: Run test suite + - name: Run unit tests run: | - pytest --integration --unit --nbmake --examples + python -m pytest --unit + + - name: Run integtration tests + run: | + python -m pytest --integration + + - name: Run examples tests + run: | + python -m pytest --nbmake --examples From 9f20994e57d68552ba2fe720ea9d5a305068c23d Mon Sep 17 00:00:00 2001 From: Brady Planden Date: Sat, 13 Apr 2024 10:32:12 +0100 Subject: [PATCH 08/14] add continuation on fail --- .github/workflows/nightly_dependency_tests.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nightly_dependency_tests.yaml b/.github/workflows/nightly_dependency_tests.yaml index 62f3c164..6df80c34 100644 --- a/.github/workflows/nightly_dependency_tests.yaml +++ b/.github/workflows/nightly_dependency_tests.yaml @@ -60,13 +60,16 @@ jobs: python -m pip install pybtex - name: Run unit tests + if: ${{ ! cancelled() }} run: | python -m pytest --unit - - name: Run integtration tests + - name: Run integration tests + if: ${{ ! cancelled() }} run: | python -m pytest --integration - name: Run examples tests + if: ${{ ! cancelled() }} run: | python -m pytest --nbmake --examples From 072ac2a4eaeb0acd7f61b94ac0e5672d86c578f4 Mon Sep 17 00:00:00 2001 From: Brady Planden Date: Sat, 13 Apr 2024 11:14:45 +0100 Subject: [PATCH 09/14] Updt to scheduled trigger --- .github/workflows/nightly_dependency_tests.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nightly_dependency_tests.yaml b/.github/workflows/nightly_dependency_tests.yaml index 6df80c34..5ef373ea 100644 --- a/.github/workflows/nightly_dependency_tests.yaml +++ b/.github/workflows/nightly_dependency_tests.yaml @@ -2,7 +2,8 @@ name: Nightly dependencies@develop on: workflow_dispatch: - push: + schedule: + - cron: "0 23 * * *" concurrency: # github.workflow: name of the workflow, so that we don't cancel other workflows From 573f4353dc5da2e2ffb2dfe87928e5b57d7057cf Mon Sep 17 00:00:00 2001 From: Brady Planden <55357039+BradyPlanden@users.noreply.github.com> Date: Wed, 17 Apr 2024 11:40:12 +0100 Subject: [PATCH 10/14] Update .github/workflows/nightly_dependency_tests.yaml Co-authored-by: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> --- .github/workflows/nightly_dependency_tests.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nightly_dependency_tests.yaml b/.github/workflows/nightly_dependency_tests.yaml index 5ef373ea..d59602ef 100644 --- a/.github/workflows/nightly_dependency_tests.yaml +++ b/.github/workflows/nightly_dependency_tests.yaml @@ -7,10 +7,9 @@ on: concurrency: # github.workflow: name of the workflow, so that we don't cancel other workflows - # github.event.pull_request.number || github.ref: pull request number or branch name if not a pull request - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + # github.run_id || github.event_name: either the unique identifier for the job or the event that triggered it + group: ${{ github.workflow }}-${{ github.run_id || github.event_name }} # Cancel in-progress runs when a new workflow with the same group name is triggered - # This avoids workflow runs on both pushes and PRs cancel-in-progress: true jobs: From 4366f8c4f533570fff6895908e26331426ad7019 Mon Sep 17 00:00:00 2001 From: Brady Planden <55357039+BradyPlanden@users.noreply.github.com> Date: Wed, 17 Apr 2024 11:41:21 +0100 Subject: [PATCH 11/14] Apply suggestions from code review Co-authored-by: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> --- .../workflows/nightly_dependency_tests.yaml | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/.github/workflows/nightly_dependency_tests.yaml b/.github/workflows/nightly_dependency_tests.yaml index d59602ef..76398d1d 100644 --- a/.github/workflows/nightly_dependency_tests.yaml +++ b/.github/workflows/nightly_dependency_tests.yaml @@ -13,22 +13,7 @@ concurrency: cancel-in-progress: true jobs: - style: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Setup Python - uses: actions/setup-python@v4 - with: - python-version: 3.12 - - - name: Check formatting with pre-commit - run: | - python -m pip install pre-commit - pre-commit run ruff - - Tests: - needs: style + nightly_tests: runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -56,7 +41,7 @@ jobs: run: | python -m pip install -e .[all,dev] python -m pip uninstall -y pybamm - python -m pip install git+https://github.com/pybamm-team/PyBaMM.git@develop + python -m pip install "pybamm[all] @ git+https://github.com/pybamm-team/PyBaMM@develop" python -m pip install pybtex - name: Run unit tests From cefba1557a068f1b5b2f0b207318dec424124f7a Mon Sep 17 00:00:00 2001 From: Brady Planden Date: Wed, 17 Apr 2024 18:00:05 +0100 Subject: [PATCH 12/14] Update deployment versions / OS, change to weekly on Monday, remove pybtex install --- .github/workflows/nightly_dependency_tests.yaml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/nightly_dependency_tests.yaml b/.github/workflows/nightly_dependency_tests.yaml index 76398d1d..cde8dc20 100644 --- a/.github/workflows/nightly_dependency_tests.yaml +++ b/.github/workflows/nightly_dependency_tests.yaml @@ -3,7 +3,7 @@ name: Nightly dependencies@develop on: workflow_dispatch: schedule: - - cron: "0 23 * * *" + - cron: "0 23 * * 1" concurrency: # github.workflow: name of the workflow, so that we don't cancel other workflows @@ -18,16 +18,8 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - python-version: ["3.9", "3.10", "3.11", "3.12"] - # Include MacOS M-series Runners - include: - - os: macos-14 - python-version: "3.10" - - os: macos-14 - python-version: "3.11" - - os: macos-14 - python-version: "3.12" + os: [ubuntu-latest, macos-14] + python-version: ["3.12"] name: Test Suite (${{ matrix.os }} / Python ${{ matrix.python-version }}) @@ -42,7 +34,6 @@ jobs: python -m pip install -e .[all,dev] python -m pip uninstall -y pybamm python -m pip install "pybamm[all] @ git+https://github.com/pybamm-team/PyBaMM@develop" - python -m pip install pybtex - name: Run unit tests if: ${{ ! cancelled() }} From 5a7cbc4442388e3440c26dd330b355dcc6ece1fb Mon Sep 17 00:00:00 2001 From: Brady Planden <55357039+BradyPlanden@users.noreply.github.com> Date: Thu, 18 Apr 2024 13:17:05 +0100 Subject: [PATCH 13/14] Apply suggestions from code review Co-authored-by: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> --- .../workflows/nightly_dependency_tests.yaml | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/nightly_dependency_tests.yaml b/.github/workflows/nightly_dependency_tests.yaml index cde8dc20..d28bf0be 100644 --- a/.github/workflows/nightly_dependency_tests.yaml +++ b/.github/workflows/nightly_dependency_tests.yaml @@ -20,8 +20,9 @@ jobs: matrix: os: [ubuntu-latest, macos-14] python-version: ["3.12"] + suite: ["unit", "integration", "examples"] - name: Test Suite (${{ matrix.os }} / Python ${{ matrix.python-version }}) + name: Test-${{ matrix.os }}-py-${{ matrix.python-version }}-${{ matrix.suite }}) steps: - uses: actions/checkout@v4 @@ -35,17 +36,13 @@ jobs: python -m pip uninstall -y pybamm python -m pip install "pybamm[all] @ git+https://github.com/pybamm-team/PyBaMM@develop" - - name: Run unit tests - if: ${{ ! cancelled() }} - run: | - python -m pytest --unit - - - name: Run integration tests - if: ${{ ! cancelled() }} - run: | - python -m pytest --integration - - name: Run examples tests - if: ${{ ! cancelled() }} + - name: Run ${{ matrix.suite }} tests run: | - python -m pytest --nbmake --examples + if [ ${{ matrix.suite }} == "unit"]; then + python -m pytest --unit + elif [ ${{ matrix.suite }} == "integration"]; then + python -m pytest --integration + elif [ ${{ matrix.suite }} == "examples"]; then + python -m pytest --nbmake --examples + fi From 37f00e42c9167935d511f33ebdc9173bad01fac3 Mon Sep 17 00:00:00 2001 From: Brady Planden Date: Thu, 18 Apr 2024 13:21:26 +0100 Subject: [PATCH 14/14] updt workflow name --- .github/workflows/nightly_dependency_tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nightly_dependency_tests.yaml b/.github/workflows/nightly_dependency_tests.yaml index d28bf0be..be02160a 100644 --- a/.github/workflows/nightly_dependency_tests.yaml +++ b/.github/workflows/nightly_dependency_tests.yaml @@ -1,4 +1,4 @@ -name: Nightly dependencies@develop +name: Nightly dependencies at develop on: workflow_dispatch: