Skip to content

Commit

Permalink
Add publish python doc to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Garvys committed May 9, 2022
1 parent aeb727d commit ece3332
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,20 @@ jobs:
- name: Test rustfst-python
run: python -m pytest -s --cache-clear --disable-warnings rustfst-python

publish-python-doc:
name: Publish rustfst-python's doc
# needs: [ rust-doc, rust-tests, rustfst-python-bench, rustfst-python ]
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/readthedocs'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: ${{ env.PYTHON_VERSION }}
- run: pip install -r requirements-mkdocs.txt
- run: mkdocs build


publish-rust-crate:
name: Publish Rust Crate to Crates.io
needs: [ rust-doc, rust-tests, rustfst-python-bench, rustfst-python ]
Expand Down
6 changes: 0 additions & 6 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,9 @@ build:


# Build documentation in the docs/ directory with Sphinx
#sphinx:
# configuration: rustfst-python/docs/source/conf.py
mkdocs:
configuration: mkdocs.yml

# If using Sphinx, optionally build your docs in additional formats such as PDF
# formats:
# - pdf

# Optionally declare the Python requirements required to build your docs
python:
install:
Expand Down

0 comments on commit ece3332

Please sign in to comment.