Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation build test to CI/CD #1895

Merged
merged 3 commits into from
Aug 2, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,30 @@ jobs:
python -m pip install `ls dist/*.tar.gz`
pytest --dist loadscope --numprocesses auto tests/countries tests/financial

test-docs:
name: Test docs build
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Set Up Python
uses: actions/setup-python@v5
with:
cache: pip
cache-dependency-path: requirements/docs.txt
python-version: '3.12'

- name: Install Dependencies
run: |
python -m pip install --requirement requirements/docs.txt
python -m pip install .

- name: Build docs
run: |
python -m sphinx -E -T -W -b html -D language=en -j auto -q docs/source docs/build
arkid15r marked this conversation as resolved.
Show resolved Hide resolved

publish-pypi-main:
name: Publish to PyPI
if: |
Expand All @@ -162,6 +186,7 @@ jobs:
environment: main
needs:
- test-build
- test-docs
permissions:
id-token: write
runs-on: ubuntu-latest
Expand Down
Loading