diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index f46e01d4d..e21907802 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -1,5 +1,9 @@ name: pre-commit +concurrency: + group: ${ github.ref } + cancel-in-progress: true + on: pull_request: push: @@ -9,6 +13,22 @@ jobs: pre-commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v3 - - uses: pre-commit/action@v3.0.0 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v3 + - uses: pre-commit/action@v3.0.0 + test-build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: "3.10" + cache: "pip" + + - name: Install Python requirements + run: pip install -r requirements.txt + + - name: Build documentation + run: mkdocs build + env: + DEFAULT_LANGUAGE_ONLY: true diff --git a/requirements.txt b/requirements.txt index 90612f87c..636e16cfc 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,6 +2,7 @@ CairoSVG==2.7.1 cryptography==41.0.4 fancyboxmd==1.1.0 mkdocs-material==9.4.6 +mkdocs-material-extensions==1.3 mkdocs-static-i18n==1.1.1 mkdocs-video==1.5.0 PyGithub==2.1.1