Skip to content

Commit

Permalink
Add a build step to lint-test; rename pre-commit to lint-test
Browse files Browse the repository at this point in the history
mkdocs-material-extensions
added concurrency to cancel jobs with the same github ref; reverted renaming
  • Loading branch information
why-not-try-calmer committed Oct 24, 2023
1 parent 2c8b7e6 commit 0dc0bdb
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: pre-commit

concurrency:
group: ${ github.ref }
cancel-in-progress: true

on:
pull_request:
push:
Expand All @@ -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
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0dc0bdb

Please sign in to comment.