2
0
mirror of https://github.com/inventree/inventree-docs.git synced 2025-04-28 05:36:46 +00:00

Merge pull request #206 from inventree/images

Add github action
This commit is contained in:
Oliver 2021-11-05 21:17:04 +11:00 committed by GitHub
commit 68d3c56942
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 40 additions and 0 deletions

27
.github/workflows/check_config.yaml vendored Normal file
View File

@ -0,0 +1,27 @@
name: Config Checks
on:
push:
branches-ignore:
- l10*
pull_request:
branches-ignore:
- l10*
jobs:
mkdocs:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Run Checks
run: |
pip install pyyaml
python ci/check_mkdocs_config.py

13
ci/check_mkdocs_config.py Normal file
View File

@ -0,0 +1,13 @@
import os
import yaml
here = os.path.dirname(__file__)
tld = os.path.abspath(os.path.join(here, '..'))
config_file = os.path.join(tld, 'mkdocs.yml')
with open(config_file, 'r') as f:
data = yaml.safe_load(f)
assert data['strict'] == True