From 0dc0bdb0330827fe9e0b23c2114d205d6ff65f7b Mon Sep 17 00:00:00 2001 From: why-not-try-calmer Date: Tue, 24 Oct 2023 15:42:22 +0200 Subject: [PATCH 1/4] Add a build step to lint-test; rename pre-commit to lint-test mkdocs-material-extensions added concurrency to cancel jobs with the same github ref; reverted renaming --- .github/workflows/pre-commit.yml | 26 +++++++++++++++++++++++--- requirements.txt | 1 + 2 files changed, 24 insertions(+), 3 deletions(-) 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 From 5daeb0695526a1987d56c97727f27106cccebcd3 Mon Sep 17 00:00:00 2001 From: why-not-try-calmer Date: Tue, 24 Oct 2023 16:25:03 +0200 Subject: [PATCH 2/4] lint-and-test --- .github/workflows/{pre-commit.yml => lint-and-test.yml} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename .github/workflows/{pre-commit.yml => lint-and-test.yml} (94%) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/lint-and-test.yml similarity index 94% rename from .github/workflows/pre-commit.yml rename to .github/workflows/lint-and-test.yml index e21907802..22060c0f4 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/lint-and-test.yml @@ -1,4 +1,4 @@ -name: pre-commit +name: lint-and-test concurrency: group: ${ github.ref } @@ -10,7 +10,7 @@ on: branches: [master] jobs: - pre-commit: + lint-and-test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 From c6d8f10eb9273ebcd200ea463e6fd2fc73f3998f Mon Sep 17 00:00:00 2001 From: why-not-try-calmer Date: Tue, 24 Oct 2023 16:25:34 +0200 Subject: [PATCH 3/4] lint --- .github/workflows/lint-and-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint-and-test.yml b/.github/workflows/lint-and-test.yml index 22060c0f4..80055bc3b 100644 --- a/.github/workflows/lint-and-test.yml +++ b/.github/workflows/lint-and-test.yml @@ -10,7 +10,7 @@ on: branches: [master] jobs: - lint-and-test: + lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 From 25b951e3e9aa5d7210c7cf1f2ef5a75a56b847a5 Mon Sep 17 00:00:00 2001 From: Ivan Ivanov Date: Tue, 24 Oct 2023 17:55:05 +0300 Subject: [PATCH 4/4] Update lint-and-test.yml --- .github/workflows/lint-and-test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint-and-test.yml b/.github/workflows/lint-and-test.yml index 80055bc3b..7e5405e17 100644 --- a/.github/workflows/lint-and-test.yml +++ b/.github/workflows/lint-and-test.yml @@ -1,7 +1,7 @@ name: lint-and-test concurrency: - group: ${ github.ref } + group: ${{ github.ref }} cancel-in-progress: true on: @@ -16,6 +16,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-python@v3 - uses: pre-commit/action@v3.0.0 + test-build: runs-on: ubuntu-latest steps: