mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Move the twine check workflow into the main CI workflow
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
97a3614cc4
commit
49ec43d0be
2 changed files with 19 additions and 6 deletions
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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:
|
Loading…
Add table
Reference in a new issue