Skip to content

add format files for neomedsys #215

add format files for neomedsys

add format files for neomedsys #215

name: Building_docs
on:
pull_request:
push:
branches:
- "main"
jobs:
run_tests:
if: github.event_name != 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
with:
python-version: 3.10.12
- run: |
sh ./tests/tests.sh
doc_building:
needs: run_tests
if: github.event_name != 'push'
strategy:
fail-fast: false
matrix:
python-version: [3.10.12]
poetry-version: [1.3.2]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- run: poetry install
- run: poetry run sphinx-apidoc -o docs .
- run: cd docs && poetry run make html
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html