Skip to content

Commit

Permalink
Merge pull request #144 from brian-rose/fix-conda
Browse files Browse the repository at this point in the history
Stop using mambaforge
  • Loading branch information
brian-rose authored Dec 31, 2024
2 parents 60189e3 + b55a2ed commit de89354
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 21 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build-book.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Mambaforge
- name: Setup Miniforge
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
activate-environment: book-render
use-mamba: true

- name: Set cache date
run: echo "DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV
Expand All @@ -33,7 +31,7 @@ jobs:

- name: Update environment
if: steps.cache.outputs.cache-hit != 'true'
run: mamba env update -n book-render -f render-environment.yml
run: conda env update -n book-render -f render-environment.yml

- name: Build the book
run: |
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/deploy-book.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,11 @@ jobs:
env:
PR: ${{ steps.findPr.outputs.pr }}

- name: Setup Mambaforge
- name: Setup Miniforge
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
activate-environment: book-render
use-mamba: true

- name: Set cache date
run: echo "DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV
Expand All @@ -52,7 +50,7 @@ jobs:

- name: Update environment
if: steps.cache.outputs.cache-hit != 'true'
run: mamba env update -n book-render -f render-environment.yml
run: conda env update -n book-render -f render-environment.yml

# Build the book
- name: Build the book
Expand Down
15 changes: 2 additions & 13 deletions .github/workflows/link-checker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@ jobs:
access_token: ${{ github.token }}
- uses: actions/checkout@v4

- name: Setup Mambaforge
- name: Setup Miniforge
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
activate-environment: book-render
use-mamba: true

- name: Set cache date
run: echo "DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV
Expand All @@ -38,17 +36,8 @@ jobs:

- name: Update environment
if: steps.cache.outputs.cache-hit != 'true'
run: mamba env update -n book-render -f render-environment.yml
run: conda env update -n book-render -f render-environment.yml

# - name: Disable notebook execution
# shell: python
# run: |
# import yaml
# with open('_config.yml') as f:
# data = yaml.safe_load(f)
# data['execute']['execute_notebooks'] = 'off'
# with open('_config.yml', 'w') as f:
# yaml.dump(data, f)
- name: Check external links
run: |
jupyter-book build --builder linkcheck .

0 comments on commit de89354

Please sign in to comment.