Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sosiristseng committed Mar 10, 2024
1 parent 8088401 commit ad36ed1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 12 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ env:
CACHE_NUM: '1'
JULIA_CONDAPKG_BACKEND: 'Null'
JULIA_CI: 'true'
PY_VER: '3.12'

jobs:
CI:
Expand All @@ -30,16 +29,16 @@ jobs:
uses: actions/setup-python@v5
id: cp
with:
python-version: ${{ env.PY_VER }}
python-version: '3.x'
- name: Cache pip dependencies
uses: actions/cache@v4
id: cache-py
with:
save-always: 'true'
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-pip-${{ env.CACHE_NUM }}-${{ steps.cp.outputs.python-version }}-${{ hashFiles('requirements.txt') }}
key: ${{ runner.os }}-pip-${{ steps.cp.outputs.python-version }}-${{ hashFiles('requirements.txt') }}
- name: Install pip dependencies if cache miss
if: steps.cache-py.outputs.cache-hit != 'true'
if: ${{ steps.cache-py.outputs.cache-hit != 'true' }}
run: pip install -r requirements.txt
- name: Read Julia version
uses: SebRollen/[email protected]
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/linkcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
linkcheck:
env:
DIR: 'docs'
PY_VER: '3.12'
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -28,7 +27,7 @@ jobs:
uses: actions/setup-python@v5
id: cp
with:
python-version: ${{ env.PY_VER }}
python-version: '3.x'
- name: Cache pip dependencies
uses: actions/cache@v4
id: cache-py
Expand All @@ -37,7 +36,7 @@ jobs:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-pip-${{ steps.cp.outputs.python-version }}-${{ hashFiles('requirements.txt') }}
- name: Install pip dependencies if cache miss
if: steps.cache-py.outputs.cache-hit != 'true'
if: ${{ steps.cache-py.outputs.cache-hit != 'true' }}
run: pip install -r requirements.txt
- name: Build website
run: jupyter-book build ${DIR} --builder linkcheck
3 changes: 1 addition & 2 deletions .github/workflows/update-manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ concurrency:

env:
APP_ID: '189113' # https://github.com/apps/wen-wei-s-pr-bot
JL_VER: '1'

jobs:
update-manifest:
Expand All @@ -30,7 +29,7 @@ jobs:
- name: Setup Julia
uses: julia-actions/setup-julia@v1
with:
version: ${{ env.JL_VER }}
version: '1'
- name: Update Julia dependencies
env:
JULIA_PKG_PRECOMPILE_AUTO: '0'
Expand Down
2 changes: 1 addition & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ launch_buttons:

# Information about where the book exists on the web
repository:
url: https://github.com/ww-jl/jl-dataframes # Online location of your book (GitHub is recommended)
url: https://github.com/sosiristseng/template-juliabook-parallel # Online location of your book (GitHub is recommended)
path_to_book: docs # Optional path to your book, relative to the repository root
branch: main # Which branch of the repository should be used when creating links (optional)

Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
nbconvert==7.16.0
matplotlib==3.8.2
matplotlib==3.8.3
nbconvert==7.16.2
jupyter-book==1.0.0

0 comments on commit ad36ed1

Please sign in to comment.