From 2f627082b5dc2d47a353656bc524c7ff9ea26018 Mon Sep 17 00:00:00 2001 From: ajharvie <49027510+ajharvie@users.noreply.github.com> Date: Thu, 14 Nov 2024 14:41:21 +0000 Subject: [PATCH] update tests --- .github/workflows/deploy-book.yml | 7 ++-- .github/workflows/test-build.yml | 61 ++++++++++++++----------------- 2 files changed, 31 insertions(+), 37 deletions(-) diff --git a/.github/workflows/deploy-book.yml b/.github/workflows/deploy-book.yml index 5502eea..6814778 100644 --- a/.github/workflows/deploy-book.yml +++ b/.github/workflows/deploy-book.yml @@ -13,11 +13,10 @@ jobs: deploy-book: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: conda-incubator/setup-miniconda@v2 + - uses: actions/checkout@v4 + - uses: conda-incubator/setup-miniconda@v3 with: environment-file: environment.yml - auto-activate-base: false activate-environment: arcdocs-jb # Build the book @@ -32,4 +31,4 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./book/_build/html - publish_branch: gh-pages \ No newline at end of file + publish_branch: gh-pages diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index bfdef4a..336bba4 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -1,33 +1,28 @@ -# copied from https://jupyterbook.org/publish/gh-pages.html?highlight=github%20pages - -name: test-build - -# Only run this when a PR suggests changes to main branch -on: - pull_request: - branches: - - main - -# This job installs dependencies and builds the book -jobs: - deploy-book: - runs-on: ${{ matrix.os }} - strategy: - # test build on multiple OS - matrix: - os: [macos-latest, windows-latest, ubuntu-latest] - steps: - - uses: actions/checkout@v2 - - uses: conda-incubator/setup-miniconda@v2 - with: - environment-file: environment.yml - auto-activate-base: false - activate-environment: arcdocs-jb - - # Build the book - - name: Build the book - shell: bash -l {0} - run: | - conda activate arcdocs-jb - jupyter-book build ./book/ - +# copied from https://jupyterbook.org/publish/gh-pages.html?highlight=github%20pages + +name: test-build + +# Only run this when a PR suggests changes to main branch +on: + pull_request: + branches: + - main + workflow_dispatch: + +# This job installs dependencies and builds the book +jobs: + deploy-book: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: conda-incubator/setup-miniconda@v3 + with: + environment-file: environment.yml + activate-environment: arcdocs-jb + + # Build the book + - name: Build the book + shell: bash -l {0} + run: | + conda activate arcdocs-jb + jupyter-book build ./book/