Skip to content

Commit 6aee329

Browse files
committed
Fix doc build error
1 parent 227d878 commit 6aee329

1 file changed

Lines changed: 28 additions & 29 deletions

File tree

.github/workflows/fmu-config.yml

Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -13,51 +13,50 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
python-version: ['3.6', '3.7', '3.8']
16+
python-version: ["3.6", "3.7", "3.8"]
1717

1818
steps:
19+
- name: Checkout commit locally
20+
uses: actions/checkout@v2
1921

20-
- name: Checkout commit locally
21-
uses: actions/checkout@v2
22+
- name: Set up Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v1
24+
with:
25+
python-version: ${{ matrix.python-version }}
2226

23-
- name: Set up Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v1
25-
with:
26-
python-version: ${{ matrix.python-version }}
27+
- name: Check code style
28+
run: |
29+
pip install black
30+
black --check *.py src tests docs
31+
pip install flake8
32+
flake8 src tests docs
2733
28-
- name: Check code style
29-
run: |
30-
pip install black
31-
black --check *.py src tests docs
32-
pip install flake8
33-
flake8 src tests docs
34+
- name: Install requirements
35+
run: |
36+
pip install -r requirements.txt
37+
pip install -r requirements_dev.txt
38+
pip install .
3439
35-
- name: Install requirements
36-
run: |
37-
pip install -r requirements.txt
38-
pip install -r requirements_dev.txt
39-
pip install .
40+
- name: Run tests
41+
run: pytest ./tests
4042

41-
- name: Run tests
42-
run: pytest ./tests
43+
- name: Syntax check documentation
44+
run: rstcheck -r docs
4345

44-
- name: Syntax check documentation
45-
run: rstcheck -r docs
46+
- name: Build documentation
47+
run: python setup.py build_sphinx
4648

47-
- name: Build documentation
48-
run: python setup.py build_sphinx
49-
50-
- name: Update GitHub pages
51-
if: github.repository_owner == 'equinor' && github.ref == 'refs/heads/master' && matrix.python-version == '3.6'
52-
run: |
49+
- name: Update GitHub pages
50+
if: github.repository_owner == 'equinor' && github.ref == 'refs/heads/master' && matrix.python-version == '3.6'
51+
run: |
5352
cp -R ./build/sphinx/html ../html
5453
5554
git config --local user.email "fmu-config-github-action"
5655
git config --local user.name "fmu-config-github-action"
5756
git fetch origin gh-pages
5857
git checkout --track origin/gh-pages
5958
git clean -f -f -d -x # Double -f is intentional
60-
git rm -r *
59+
git rm -r * --ignore-unmatch
6160
6261
cp -R ../html/* .
6362
touch .nojekyll # If not, github pages ignores _* directories.

0 commit comments

Comments
 (0)