Move the twine check workflow into the main CI workflow

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2022-12-22 18:36:24 +00:00 committed by Pedro Algarvio
parent 97a3614cc4
commit 49ec43d0be
2 changed files with 19 additions and 6 deletions

View file

@ -191,6 +191,15 @@ jobs:
with:
changed-files: ${{ needs.prepare-ci.outputs.changed-files }}
twine-check:
name: Twine Check
if: ${{ fromJSON(needs.prepare-ci.outputs.jobs)['github-hosted-runners'] }}
uses: ./.github/workflows/twine-check-action.yml
needs:
- prepare-ci
with:
changed-files: ${{ needs.prepare-ci.outputs.changed-files }}
windows-2016:
@ -457,6 +466,7 @@ jobs:
- pre-commit
- docs
- lint
- twine-check
- almalinux-8
- almalinux-9
- amazonlinux-2

View file

@ -1,22 +1,25 @@
name: Twine Check
on: [push, pull_request]
permissions:
contents: read
on:
workflow_call:
inputs:
changed-files:
required: true
type: string
description: JSON string containing information about changed files
jobs:
Twine-Check:
name: Run 'twine check' Against Salt
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.8'
python-version: '3.9'
- name: Install dependencies
env: