Skip to content

Commit b295e9d

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 4327a32 + e34370f commit b295e9d

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.github/workflows/sphinx.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: "Pull Request Docs Check"
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
docs:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v1
13+
14+
- name: Add packages
15+
run: |
16+
sudo apt-get install texlive-latex-recommended texlive-fonts-recommended texlive-latex-extra cm-super dvipng
17+
18+
- name: Cache conda
19+
uses: actions/cache@v2
20+
env:
21+
# Increase this value to reset cache if etc/example-environment.yml has not changed
22+
CACHE_NUMBER: 1
23+
with:
24+
path: ~/conda_pkgs_dir
25+
key:
26+
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('requirements.txt') }}
27+
28+
- uses: conda-incubator/setup-miniconda@v2
29+
with:
30+
auto-update-conda: true
31+
python-version: 3.7
32+
use-only-tar-bz2: true
33+
34+
- name: Install dependencies
35+
shell: bash -l {0}
36+
run: |
37+
conda install --yes -c conda-forge --file requirements.txt
38+
pip install nose-timer
39+
40+
- name: Run nosetest
41+
run: |
42+
export PATH=/usr/share/miniconda/envs/test/bin/:$PATH
43+
nosetests -v --with-timer --with-coverage --cover-erase --cover-inclusive --cover-package=pySDC/core,pySDC/implementations,pySDC/helpers,pySDC/tutorial,pySDC/projects --cover-html --cover-html-dir=doc/build/test_coverage pySDC/tests
44+
45+
- name: Build
46+
uses: ammaraskar/sphinx-action@master
47+
with:
48+
docs-folder: "docs/"
49+
50+
- name: Deploy 🚀
51+
uses: JamesIves/[email protected]
52+
if: ${{ github.event_name == 'push' }}
53+
with:
54+
branch: gh-pages # The branch the action should deploy to.
55+
folder: docs/build/html # The folder the action should deploy.

0 commit comments

Comments
 (0)