Skip to content

Commit

Permalink
Merge pull request #52 from uwhackweek/environment
Browse files Browse the repository at this point in the history
Conda - Unpin the Jupyter Book version
  • Loading branch information
jomey authored Apr 3, 2024
2 parents d4b7969 + b97971b commit 083dad7
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/actions/setupconda/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ runs:
using: "composite"
steps:
- name: Cache Conda Packages
uses: actions/cache@v3
uses: actions/cache@v4
env:
# Increase this value to reset cache if environment.yml has not changed
CACHE_NUMBER: 0
Expand All @@ -15,7 +15,7 @@ runs:
${{ runner.os }}-conda-packages-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment.yml') }}

- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
miniforge-variant: Mambaforge
Expand All @@ -26,7 +26,7 @@ runs:

- name: Cache Entire Conda Environment
id: cache-env
uses: actions/cache@v3
uses: actions/cache@v4
env:
CACHE_NUMBER: 0
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ on:

jobs:
build-and-deploy:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: ./.github/actions/setupconda

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/netlifypreview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
add-preview:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
# This workflow accesses secrets and checks out a PR, so only run if labelled
# https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
if: contains(github.event.pull_request.labels.*.name, 'preview')
Expand All @@ -20,7 +20,7 @@ jobs:
shell: bash -l {0}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

Expand All @@ -31,7 +31,7 @@ jobs:
jupyter-book build docs/
- name: Deploy Website Preview
uses: nwtgck/actions-netlify@v1.1
uses: nwtgck/actions-netlify@v3.0
with:
publish-dir: './docs/_build/html'
production-deploy: false
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ on:

jobs:
build-and-test:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: ./.github/actions/setupconda

Expand Down
3 changes: 1 addition & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ name: hackweek-guidebook
channels:
- conda-forge
dependencies:
- python=3.10
- jupyter-book=0.13
- jupyter-book

0 comments on commit 083dad7

Please sign in to comment.