Skip to content

Commit

Permalink
Merge pull request #958 from sphinx-contrib/use-doctest-container-for…
Browse files Browse the repository at this point in the history
…-doc-publish-tests

.github: switch to doctest container (conf. publish test)
  • Loading branch information
jdknight committed Apr 8, 2024
2 parents c70b3fc + f66ebda commit 592f574
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
19 changes: 2 additions & 17 deletions .github/workflows/confluence-publish-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ on:

jobs:
build:
name: Generate
runs-on: ubuntu-latest
container: ghcr.io/sphinx-contrib/confluencebuilder/doctest:main

steps:
- uses: actions/checkout@v4
Expand All @@ -38,23 +40,6 @@ jobs:
with:
python-version: ${{ github.event.inputs.python }}

- name: Cache pip
uses: actions/cache@v4
id: cache-pip
with:
path: ~/.cache/pip
key: ubuntu-latest-${{ github.event.inputs.python }}-pip-

- name: Install dependencies
run: |
sudo apt-get install \
dvipng \
graphviz \
texlive-latex-extra \
texlive-latex-recommended \
-y
python -m pip install --upgrade tox
- name: tox
env:
CONFLUENCE_AUTH: ${{ secrets.CONFLUENCE_AUTH }}
Expand Down
2 changes: 1 addition & 1 deletion tests/test_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def setUpClass(cls):
cls.config['manpages_url'] = 'https://example.org/{path}'
cls.test_desc = os.getenv(TESTDESC_ENV_KEY, DEFAULT_TEST_DESC)
cls.test_key = os.getenv(TESTKEY_ENV_KEY, DEFAULT_TEST_KEY)
cls.test_version = os.getenv(TESTKEY_ENV_KEY, DEFAULT_TEST_VERSION)
cls.test_version = os.getenv(TESTKEY_ENV_VERSION, DEFAULT_TEST_VERSION)

# overrides from user
try:
Expand Down

0 comments on commit 592f574

Please sign in to comment.