diff --git a/.github/workflows/check_docs_config.yaml b/.github/workflows/check_docs_config.yaml deleted file mode 100644 index 2efc7b0e9d..0000000000 --- a/.github/workflows/check_docs_config.yaml +++ /dev/null @@ -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 diff --git a/.github/workflows/qc_checks.yaml b/.github/workflows/qc_checks.yaml index c0b5369ab1..6084c28e55 100644 --- a/.github/workflows/qc_checks.yaml +++ b/.github/workflows/qc_checks.yaml @@ -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 diff --git a/.github/workflows/social.yml.disabled b/.github/workflows/social.yml.disabled deleted file mode 100644 index da233b1212..0000000000 --- a/.github/workflows/social.yml.disabled +++ /dev/null @@ -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 }}"