Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ajharvie committed Nov 14, 2024
1 parent bee4e2e commit 2f62708
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 37 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/deploy-book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -32,4 +31,4 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book/_build/html
publish_branch: gh-pages
publish_branch: gh-pages
61 changes: 28 additions & 33 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
@@ -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/

0 comments on commit 2f62708

Please sign in to comment.