Skip to content

Commit

Permalink
actions: Build docs at end of successful test run
Browse files Browse the repository at this point in the history
  • Loading branch information
wence- committed May 11, 2021
1 parent f1daf21 commit c8d7ff6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 61 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,14 @@ jobs:
CC: mpicc
PETSC_DIR: ${{ github.workspace }}/petsc
PETSC_ARCH: default
PETSC_CONFIGURE_OPTIONS: --with-debugging=1 --with-shared-libraries=1
PETSC_CONFIGURE_OPTIONS: --with-debugging=1 --with-shared-libraries=1 --with-c2html=0 --with-fortran-bindings=0

steps:
- name: Install system dependencies
shell: bash
run: |
sudo apt install \
build-essential python3-dev git python3-pip libopenmpi-dev \
openmpi-bin libblas-dev liblapack-dev gfortran
sudo apt install build-essential mpich libmpich-dev \
libblas-dev liblapack-dev gfortran
- name: Set correct Python version
uses: actions/setup-python@v2
Expand Down Expand Up @@ -56,13 +55,13 @@ jobs:
uses: actions/checkout@v2
with:
path: PyOP2

- name: Install PyOP2
shell: bash
working-directory: PyOP2
run: |
python -m pip install pip==20.2 # pip 20.2 needed for loopy install to work.
# xargs is used to force installation of requirements in the order we specified.
xargs -l1 python -m pip install < requirements-ext.txt
xargs -l1 python -m pip install < requirements-git.txt
Expand All @@ -79,3 +78,18 @@ jobs:
shell: bash
working-directory: PyOP2
run: pytest test -v --tb=native

- name: Build documentation
shell: bash
working-directory: PyOP2
run: |
python -m pip install sphinx
make -C doc/sphinx html
- name: Upload to github pages
if: ${{ github.ref == 'refs/heads/master' && github.event_name == 'push' }}
uses: crazy-max/[email protected]
with:
build_dir: PyOP2/doc/sphinx/build/html
jekyll: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55 changes: 0 additions & 55 deletions .github/workflows/gh-pages.yml

This file was deleted.

0 comments on commit c8d7ff6

Please sign in to comment.