Build sphinx doc as part of ci

This commit is contained in:
Bastien Gérard
2020-11-06 21:42:12 +01:00
committed by Bastien Gerard
parent fd35df07c4
commit 0e9920b190
4 changed files with 36 additions and 10 deletions

View File

@@ -66,6 +66,22 @@ jobs:
- name: Run test suite
run: tox -e $(echo py${{ matrix.python-version }}-mg${{ matrix.PYMONGO }} | tr -d . | sed -e 's/pypypy/pypy/') -- -a "--cov=mongoengine"
build_doc_dryrun:
# ensures that readthedocs can be built continuously
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: 3.7
- run: |
pip install -e .
pip install -r docs/requirements.txt
- run: |
cd docs
make html-readthedocs
irc_notification:
runs-on: ubuntu-latest
needs: [linting, test]
@@ -89,14 +105,18 @@ jobs:
python-version: 3.7
# todo separate build from publish
# https://stackoverflow.com/questions/59349905/which-properties-does-github-event-in-a-github-workflow-have
- run: |
- name: build dummy wheel for test-pypi
run: |
pip install wheel
python setup.py sdist bdist_wheel
- uses: pypa/gh-action-pypi-publish@master
python setup.py egg_info -b ".dev`date '+%Y%m%d%H%M%S'`" build sdist bdist_wheel
# python setup.py sdist bdist_wheel
- name: publish test-pypi
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.test_pypi_password }}
repository_url: https://test.pypi.org/legacy/
- uses: pypa/gh-action-pypi-publish@master
if: github.event_name == 'create' && startsWith(github.ref, 'refs/tags/v')
with:
password: ${{ secrets.pypi_password }}
# - name: publish pypi
# uses: pypa/gh-action-pypi-publish@master
# if: github.event_name == 'create' && startsWith(github.ref, 'refs/tags/v')
# with:
# password: ${{ secrets.pypi_password }}