diff --git a/.github/workflows/docs.yml b/.github/workflows/docs-admonitions.yml similarity index 62% rename from .github/workflows/docs.yml rename to .github/workflows/docs-admonitions.yml index 9a54e51ce22..90ab6f8e97c 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs-admonitions.yml @@ -1,9 +1,10 @@ -name: Test Documentation Build +name: Test Admonitions Generation on: pull_request: paths: - telegram/** - docs/** + - .github/workflows/docs-admonitions.yml push: branches: - master @@ -11,8 +12,8 @@ on: permissions: {} jobs: - test-sphinx-build: - name: test-sphinx-build + test-admonitions: + name: Test Admonitions Generation runs-on: ${{matrix.os}} permissions: # for uploading artifacts @@ -37,17 +38,4 @@ jobs: python -W ignore -m pip install --upgrade pip python -W ignore -m pip install -r requirements-dev-all.txt - name: Test autogeneration of admonitions - run: pytest -v --tb=short tests/docs/admonition_inserter.py - - name: Build docs - run: sphinx-build docs/source docs/build/html -W --keep-going -j auto - - name: Upload docs - uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 - with: - name: HTML Docs - retention-days: 7 - path: | - # Exclude the .doctrees folder and .buildinfo file from the artifact - # since they are not needed and add to the size - docs/build/html/* - !docs/build/html/.doctrees - !docs/build/html/.buildinfo + run: pytest -v --tb=short tests/docs/admonition_inserter.py \ No newline at end of file diff --git a/.readthedocs.yml b/.readthedocs.yml index a23c582637d..11075b0fe2b 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -18,7 +18,7 @@ python: install: - method: pip path: . - - requirements: docs/requirements-docs.txt + - requirements: requirements-dev-all.txt build: os: ubuntu-22.04