From 68503581a07a6addf77372d47f1589881a4b41c0 Mon Sep 17 00:00:00 2001 From: Juan Font Date: Sun, 21 Apr 2024 16:33:22 +0200 Subject: [PATCH] Add test stage to docs (#1893) * Add test stage to docs Add new file with docs tets Run only in pulls * set explicit python version * Revert "set explicit python version" This reverts commit 4dd7b81f26421a3fc0b742547aae503f457954de. * docs/requirements: update mkdocs-material --------- Co-authored-by: ohdearaugustin --- .github/workflows/docs-test.yml | 27 +++++++++++++++++++++++++++ docs/requirements.txt | 3 +-- 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/docs-test.yml diff --git a/.github/workflows/docs-test.yml b/.github/workflows/docs-test.yml new file mode 100644 index 00000000..575f7c98 --- /dev/null +++ b/.github/workflows/docs-test.yml @@ -0,0 +1,27 @@ +name: Test documentation build + +on: [pull_request] + +concurrency: + group: ${{ github.workflow }}-$${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Install python + uses: actions/setup-python@v4 + with: + python-version: 3.x + - name: Setup cache + uses: actions/cache@v2 + with: + key: ${{ github.ref }} + path: .cache + - name: Setup dependencies + run: pip install -r docs/requirements.txt + - name: Build docs + run: mkdocs build --strict \ No newline at end of file diff --git a/docs/requirements.txt b/docs/requirements.txt index 32bd08c1..bcbf7c0e 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,5 +1,4 @@ cairosvg~=2.7.1 -mkdocs-material~=9.4.14 +mkdocs-material~=9.5.18 mkdocs-minify-plugin~=0.7.1 pillow~=10.1.0 -