mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 12:06:44 +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:
parent
21e0679cb9
commit
e5e1a09b45
31
.github/workflows/check_docs_config.yaml
vendored
31
.github/workflows/check_docs_config.yaml
vendored
@ -1,31 +0,0 @@
|
|||||||
name: Documentation 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.9
|
|
||||||
- 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
|
|
50
.github/workflows/qc_checks.yaml
vendored
50
.github/workflows/qc_checks.yaml
vendored
@ -1,15 +1,12 @@
|
|||||||
# Checks for each PR / push
|
# Checks for each PR / push
|
||||||
|
|
||||||
name: QC checks
|
name: QC
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches-ignore:
|
branches-ignore: ['l10*']
|
||||||
- l10*
|
|
||||||
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches-ignore:
|
branches-ignore: ['l10*']
|
||||||
- l10*
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
python_version: 3.9
|
python_version: 3.9
|
||||||
@ -25,10 +22,29 @@ env:
|
|||||||
INVENTREE_BACKUP_DIR: ../test_inventree_backup
|
INVENTREE_BACKUP_DIR: ../test_inventree_backup
|
||||||
|
|
||||||
jobs:
|
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:
|
pep_style:
|
||||||
name: Style [Python]
|
name: Style [Python]
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
|
needs: paths-filter
|
||||||
|
if: needs.paths-filter.outputs.server == 'true'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # pin@v3.1.0
|
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # pin@v3.1.0
|
||||||
- name: Enviroment Setup
|
- name: Enviroment Setup
|
||||||
@ -96,6 +112,28 @@ jobs:
|
|||||||
pip install requests
|
pip install requests
|
||||||
python3 ci/version_check.py
|
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:
|
python:
|
||||||
name: Tests - inventree-python
|
name: Tests - inventree-python
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
35
.github/workflows/social.yml.disabled
vendored
35
.github/workflows/social.yml.disabled
vendored
@ -1,35 +0,0 @@
|
|||||||
# Runs on releases
|
|
||||||
|
|
||||||
name: Publish release notes
|
|
||||||
on:
|
|
||||||
release:
|
|
||||||
types: [ published ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
|
|
||||||
tweet:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: Eomm/why-don-t-you-tweet@5936bb1fd0096b1c2bbbb7518746638261bb4dae # pin@v1.0.1
|
|
||||||
with:
|
|
||||||
tweet-message: "InvenTree release ${{ github.event.release.tag_name }} is out
|
|
||||||
now! Release notes: ${{ github.event.release.html_url }} #opensource
|
|
||||||
#inventree"
|
|
||||||
env:
|
|
||||||
TWITTER_CONSUMER_API_KEY: ${{ secrets.TWITTER_CONSUMER_API_KEY }}
|
|
||||||
TWITTER_CONSUMER_API_SECRET: ${{ secrets.TWITTER_CONSUMER_API_SECRET }}
|
|
||||||
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
|
|
||||||
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
|
|
||||||
|
|
||||||
reddit:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: bluwy/release-for-reddit-action@4b2d034b5c86a24db24363f1064149a8c2db69b4 # pin@v1.2.0
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.REDDIT_USERNAME }}
|
|
||||||
password: ${{ secrets.REDDIT_PASSWORD }}
|
|
||||||
app-id: ${{ secrets.REDDIT_APP_ID }}
|
|
||||||
app-secret: ${{ secrets.REDDIT_APP_SECRET }}
|
|
||||||
subreddit: InvenTree
|
|
||||||
title: "InvenTree version ${{ github.event.release.tag_name }} released"
|
|
||||||
comment: "${{ github.event.release.body }}"
|
|
Loading…
x
Reference in New Issue
Block a user