Skip to content

Commit

Permalink
Merge pull request #337 from ScaleComputing/fix-docs-build
Browse files Browse the repository at this point in the history
Fix docs build
  • Loading branch information
justinc1 authored Sep 10, 2024
2 parents e9bf338 + 658f23a commit 014609a
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 16 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
mypy:
name: Type checks (mypy)
runs-on: [ubuntu-latest]
container: quay.io/justinc1_github/scale_ci_integ:10
container: quay.io/justinc1_github/scale_ci_integ:11
defaults:
run:
working-directory: ${{ env.WORKDIR }}
Expand All @@ -27,7 +27,7 @@ jobs:

docs:
runs-on: [ubuntu-latest]
container: quay.io/justinc1_github/scale_ci_integ:10
container: quay.io/justinc1_github/scale_ci_integ:11
defaults:
run:
working-directory: ${{ env.WORKDIR }}
Expand All @@ -47,7 +47,7 @@ jobs:

sanity-test:
runs-on: [ubuntu-latest]
container: quay.io/justinc1_github/scale_ci_integ:10
container: quay.io/justinc1_github/scale_ci_integ:11
defaults:
run:
working-directory: ${{ env.WORKDIR }}
Expand All @@ -68,7 +68,7 @@ jobs:

units-test:
runs-on: [ubuntu-latest]
container: quay.io/justinc1_github/scale_ci_integ:10
container: quay.io/justinc1_github/scale_ci_integ:11
defaults:
run:
working-directory: ${{ env.WORKDIR }}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/integ-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
# to delay integ-test until integration-prepare-env finishes.
integration-prepare-env:
runs-on: [self-hosted2]
container: quay.io/justinc1_github/scale_ci_integ:10
container: quay.io/justinc1_github/scale_ci_integ:11
env:
ANSIBLE_COLLECTIONS_PATH: $GITHUB_WORKSPACE/work-dir
defaults:
Expand Down Expand Up @@ -109,7 +109,7 @@ jobs:

integ-matrix:
runs-on: [ubuntu-latest]
container: quay.io/justinc1_github/scale_ci_integ:10
container: quay.io/justinc1_github/scale_ci_integ:11
defaults:
run:
working-directory: ${{ env.WORKDIR }}
Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:
needs:
- integ-matrix
runs-on: [ubuntu-latest]
container: quay.io/justinc1_github/scale_ci_integ:10
container: quay.io/justinc1_github/scale_ci_integ:11
defaults:
run:
working-directory: ${{ env.WORKDIR }}
Expand Down Expand Up @@ -168,7 +168,7 @@ jobs:
needs:
- integ-seq-matrix
runs-on: [ ubuntu-latest ]
container: quay.io/justinc1_github/scale_ci_integ:10
container: quay.io/justinc1_github/scale_ci_integ:11
defaults:
run:
working-directory: ${{ env.WORKDIR }}
Expand Down Expand Up @@ -203,7 +203,7 @@ jobs:
- integ-seq-run
if: "(!cancelled()) && (needs.examples-matrix.result=='success')"
runs-on: [ self-hosted2 ]
container: quay.io/justinc1_github/scale_ci_integ:10
container: quay.io/justinc1_github/scale_ci_integ:11
env:
ANSIBLE_COLLECTIONS_PATH: $GITHUB_WORKSPACE/work-dir
DEBIAN_FRONTEND: noninteractive
Expand Down Expand Up @@ -322,7 +322,7 @@ jobs:
replica_cleanup:
needs: []
runs-on: [self-hosted2]
container: quay.io/justinc1_github/scale_ci_integ:10
container: quay.io/justinc1_github/scale_ci_integ:11
env:
ANSIBLE_COLLECTIONS_PATH: $GITHUB_WORKSPACE/work-dir
defaults:
Expand All @@ -349,7 +349,7 @@ jobs:
smb_cleanup:
needs: []
runs-on: [self-hosted2]
container: quay.io/justinc1_github/scale_ci_integ:10
container: quay.io/justinc1_github/scale_ci_integ:11
defaults:
run:
working-directory: ${{ env.WORKDIR }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ env:
jobs:
# Single deploy job since we're just deploying
deploy:
container: quay.io/justinc1_github/scale_ci_integ:10
container: quay.io/justinc1_github/scale_ci_integ:11
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/z_ansible-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
ansible_test:
name: ansible-test
runs-on: [ self-hosted2 ]
container: quay.io/justinc1_github/scale_ci_integ:10
container: quay.io/justinc1_github/scale_ci_integ:11
env:
DEBIAN_FRONTEND: noninteractive
defaults:
Expand Down
10 changes: 9 additions & 1 deletion ci-infra/docker-image/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,16 @@ Minimal local test of the new image:

```
# git code is at path .../ansible_collections/scale_computing/hypercore
docker run --rm -it -w /code/ansible_collections/scale_computing/hypercore -v $PWD/../../..:/code quay.io/justinc1_github/scale_ci_integ:10-dev0 bash
docker run --rm -it -w /code/ansible_collections/scale_computing/hypercore -v $PWD/../../..:/code quay.io/justinc1_github/scale_ci_integ:11 bash
git config --global --add safe.directory $PWD
ansible-test units --local --python 3.12
ansible-test sanity --local --python 3.12
```

Check if documentation is correctly built:

```
rm -fr docs/build docs/temp-rst
make docs
browse docs/build/html/index.html
```
2 changes: 1 addition & 1 deletion ci-infra/docker-image/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set -eux
# Where to push images
DOCKER_REGISTRY_REPO=quay.io/justinc1_github/scale_ci_integ
# Tag to push
DOCKER_IMAGE_TAG=10
DOCKER_IMAGE_TAG=11

DOCKER_CACHE="${DOCKER_CACHE:-n}"
if [ "$DOCKER_CACHE" == "n" ]
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later

antsibull-docs >= 1.0.0, < 2.0.0
antsibull-docs
ansible-pygments
sphinx
sphinx-ansible-theme >= 0.9.0

0 comments on commit 014609a

Please sign in to comment.