Skip to content

Commit

Permalink
Merge pull request #280 from inbo/housekeeping
Browse files Browse the repository at this point in the history
Fix documentation building in github actions
  • Loading branch information
johanvdw committed Jan 17, 2022
2 parents ea179af + 5d625a6 commit 0c60bcc
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 15 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Build and Deploy documentation
on:
push:
branches: [master]
branches: [master, housekeeping]
workflow_dispatch:
jobs:
build-and-deploy:
Expand All @@ -12,8 +12,14 @@ jobs:

- name: get build deps
run: |
sudo apt install pandoc
pip install -r doc-requirements.txt
- name: build docs
run: |
pip install .
cd docs
make html
- name: Deploy documentation
uses: peaceiris/actions-gh-pages@v3
Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/tests-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_PARALLEL: true
linux-pip-tests:
runs-on: ubuntu-latest
strategy:
Expand All @@ -53,6 +54,18 @@ jobs:
- name: Upload coverage
run: |
python -m pip install coveralls
coveralls --service=github
COVERALLS_PARALLEL=true coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

finish-coverage:
runs-on: ubuntu-latest
needs:
- windows-conda-tests
- linux-pip-tests
steps:
- name: Coveralls finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
7 changes: 5 additions & 2 deletions doc-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Sphinx
Sphinx==4.3.2
nbsphinx
jupyter_client
ipykernel
sphinx_rtd_theme
sphinx_rtd_theme==1.0.0
matplotlib
Pygments==2.11.2
click==8.0.3
pandoc==2.0.1
9 changes: 1 addition & 8 deletions docs/advanced_usage.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": false
},
"metadata": {},
"outputs": [],
"source": [
"adjusted_ct.plot(7)\n",
Expand All @@ -281,11 +279,6 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "niche",
"language": "python",
"name": "niche"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
include_package_data=True,
tests_require=['pytest'],
Expand Down

0 comments on commit 0c60bcc

Please sign in to comment.