Skip to content

Commit 00f7eec

Browse files
committed
Fix docs CI workflow
link generation was breaking becuase of a link to docker-compose which has now been removed. Also update the CI github action to use poetry to install deps and potentially resolve build error
1 parent e0ece67 commit 00f7eec

File tree

4 files changed

+226
-20
lines changed

4 files changed

+226
-20
lines changed

.github/workflows/lint-docs.yml

+19-17
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
11
name: Verify documentation
22
on:
33
push:
4-
branches: [ "main", "master" ]
4+
branches: ["main", "master"]
55
pull_request:
6-
branches: [ "main", "master" ]
6+
branches: ["main", "master"]
77

88
jobs:
99
verify-docs:
1010
name: Check Documentation
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v3
15-
- name: Set up Python ${{ matrix.python-version }}
16-
uses: actions/setup-python@v4
17-
with:
18-
python-version: ${{ matrix.python-version }}
19-
- name: Install dependencies
20-
run: |
21-
python -m pip install --upgrade pip
22-
pip install .[tests]
23-
- name: Build docs with MkDocs
24-
run: |
25-
make docs
26-
- name: Check Markdown links
27-
uses: gaurav-nelson/github-action-markdown-link-check@v1
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: "3.10"
19+
- name: Install Poetry
20+
run: curl -sSL https://install.python-poetry.org | python
21+
- name: Install dependencies
22+
run: |
23+
poetry env use '3.10'
24+
poetry install --extras=testing
25+
- name: Build docs with MkDocs
26+
run: |
27+
make docs
28+
- name: Check Markdown links
29+
uses: gaurav-nelson/github-action-markdown-link-check@v1

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ clean:
4444
find . -name '.bak' -exec rm -f {} +
4545

4646
docs:
47-
mkdocs build --site-dir=html
47+
poetry run mkdocs build --site-dir=html

docs/testcontainers.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ WireMockContainer(verify_ssl_certs=False)
105105

106106
## Using WireMockContainer inside Docker (dind)
107107

108-
It's common that you might need to start Testcontainers from inside of another container. The example project in [Testcontainer Example](../example/docker-compose.yml) actually does this.
108+
It's common that you might need to start Testcontainers from inside of another container. The example project in `example/docker-compose.yml` actually does this.
109109

110110
When running spawning testcontainer inside of another container you will need to set the `WIREMOCK_DIND` config variable to true. When this env var is set the host of the wiremock container
111111
will explicitly be set to `host.docker.internal`.

poetry.lock

+205-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)