2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-14 19:15:41 +00:00

CI cleanup (#4744)

* merge doc checks into main QC checks

* rename

* well both APIs are closed now so this would be useless

* make header more concise

* add check if server code changed - make run conditional

* reformat
This commit is contained in:
Matthias Mair
2023-05-01 23:58:57 +02:00
committed by GitHub
parent 21e0679cb9
commit e5e1a09b45
3 changed files with 44 additions and 72 deletions

View File

@ -1,15 +1,12 @@
# Checks for each PR / push
name: QC checks
name: QC
on:
push:
branches-ignore:
- l10*
branches-ignore: ['l10*']
pull_request:
branches-ignore:
- l10*
branches-ignore: ['l10*']
env:
python_version: 3.9
@ -25,10 +22,29 @@ env:
INVENTREE_BACKUP_DIR: ../test_inventree_backup
jobs:
paths-filter:
name: Filter
runs-on: ubuntu-latest
outputs:
server: ${{ steps.filter.outputs.server }}
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # pin@v3.1.0
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
server:
- 'InvenTree/**'
pep_style:
name: Style [Python]
runs-on: ubuntu-20.04
needs: paths-filter
if: needs.paths-filter.outputs.server == 'true'
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # pin@v3.1.0
- name: Enviroment Setup
@ -96,6 +112,28 @@ jobs:
pip install requests
python3 ci/version_check.py
mkdocs:
name: Style [documentation]
runs-on: ubuntu-20.04
needs: paths-filter
steps:
- name: Checkout Code
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # pin@v3.1.0
- name: Set up Python ${{ env.python_version }}
uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 # pin@v4.3.0
with:
python-version: ${{ env.python_version }}
- name: Check Config
run: |
pip install pyyaml
python docs/ci/check_mkdocs_config.py
- name: Check Links
run: |
pip install linkcheckmd requests
python -m linkcheckmd docs --recurse
python:
name: Tests - inventree-python
runs-on: ubuntu-20.04