Skip to content

Commit

Permalink
Github actions and pin docutils
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanc1 committed Feb 26, 2022
1 parent 1ce4c91 commit 8fb427f
Show file tree
Hide file tree
Showing 4 changed files with 310 additions and 299 deletions.
51 changes: 25 additions & 26 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,38 @@ name: docs
on:
push:
branches:
- main
- main

# This job installs dependencies, build the book, and pushes it to `gh-pages`
jobs:
deploy-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2

# Install dependencies
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
# Install dependencies
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x

- name: Install dependencies
run: |
pip install -r docs/doc-requirements.txt
yarn install
- name: Install dependencies
run: |
pip install -r docs/doc-requirements.txt
npm install
# Build the book
- name: Build the book
run: |
yarn build
cd docs; make build
# Build the book
- name: Build the book
run: |
cd docs; make build
# Push the book's HTML to github-pages
- name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v3.5.9
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html
# Push the book's HTML to github-pages
- name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v3.5.9
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html
22 changes: 10 additions & 12 deletions .github/workflows/lint_and_unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache packages
id: cache-npm
uses: actions/cache@v2
- uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-npm
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
Expand All @@ -32,13 +31,12 @@ jobs:
node-version: [12.x, 14.x]
steps:
- uses: actions/checkout@v2
- name: Cache packages
id: cache-npm
uses: actions/cache@v2
- uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-npm
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
Expand Down
Loading

0 comments on commit 8fb427f

Please sign in to comment.