mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add, and use, the setup-python-tools-scripts
action
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
6acef263b1
commit
a9c2dc5dd9
4 changed files with 35 additions and 26 deletions
17
.github/actions/setup-python-tools-scripts/action.yml
vendored
Normal file
17
.github/actions/setup-python-tools-scripts/action.yml
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
name: setup-python-tools-scripts
|
||||
description: Setup 'python-tools-scripts'
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
|
||||
steps:
|
||||
|
||||
- name: Install 'python-tools-scripts'
|
||||
shell: bash
|
||||
env:
|
||||
PIP_INDEX_URL: https://pypi-proxy.saltstack.net/root/local/+simple/
|
||||
PIP_EXTRA_INDEX_URL: https://pypi.org/simple
|
||||
run: |
|
||||
PY_VERSION=$(python3 -c "import sys; sys.stdout.write('{}.{}'.format(*sys.version_info))")
|
||||
python3 -m pip install -r requirements/static/ci/py${PY_VERSION}/tools.txt
|
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
|
@ -107,12 +107,8 @@ jobs:
|
|||
with:
|
||||
python-version: "3.10"
|
||||
|
||||
- name: Install Python Tools Scripts
|
||||
env:
|
||||
PIP_INDEX_URL: https://pypi-proxy.saltstack.net/root/local/+simple/
|
||||
PIP_EXTRA_INDEX_URL: https://pypi.org/simple
|
||||
run: |
|
||||
python3 -m pip install -r requirements/static/ci/py3.10/tools.txt
|
||||
- name: Setup Python Tools Scripts
|
||||
uses: ./.github/actions/setup-python-tools-scripts
|
||||
|
||||
- name: Process Changed Files
|
||||
id: process-changed-files
|
||||
|
|
8
.github/workflows/test-action-macos.yml
vendored
8
.github/workflows/test-action-macos.yml
vendored
|
@ -40,12 +40,8 @@ jobs:
|
|||
- name: Checkout Source Code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install Python Tools Scripts
|
||||
env:
|
||||
PIP_INDEX_URL: https://pypi-proxy.saltstack.net/root/local/+simple/
|
||||
PIP_EXTRA_INDEX_URL: https://pypi.org/simple
|
||||
run: |
|
||||
python3 -m pip install -r requirements/static/ci/py3.10/tools.txt
|
||||
- name: Setup Python Tools Scripts
|
||||
uses: ./.github/actions/setup-python-tools-scripts
|
||||
|
||||
- name: Generate Test Matrix
|
||||
id: generate-matrix
|
||||
|
|
28
.github/workflows/test-action.yml
vendored
28
.github/workflows/test-action.yml
vendored
|
@ -37,12 +37,8 @@ jobs:
|
|||
- name: Checkout Source Code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install Python Tools Scripts
|
||||
env:
|
||||
PIP_INDEX_URL: https://pypi-proxy.saltstack.net/root/local/+simple/
|
||||
PIP_EXTRA_INDEX_URL: https://pypi.org/simple
|
||||
run: |
|
||||
python3 -m pip install -r requirements/static/ci/py3.10/tools.txt
|
||||
- name: Setup Python Tools Scripts
|
||||
uses: ./.github/actions/setup-python-tools-scripts
|
||||
|
||||
- name: Generate Test Matrix
|
||||
id: generate-matrix
|
||||
|
@ -88,10 +84,8 @@ jobs:
|
|||
run: |
|
||||
sed -i '7s;^;--index-url=https://pypi-proxy.saltstack.net/root/local/+simple/ --extra-index-url=https://pypi.org/simple\n;' requirements/static/ci/*/*.txt
|
||||
|
||||
- name: Install Python Tools Scripts
|
||||
if: steps.nox-dependencies-cache.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
python3 -m pip install -r requirements/static/ci/py3.10/tools.txt
|
||||
- name: Setup Python Tools Scripts
|
||||
uses: ./.github/actions/setup-python-tools-scripts
|
||||
|
||||
- name: Define Nox Session
|
||||
run: |
|
||||
|
@ -179,10 +173,8 @@ jobs:
|
|||
run: |
|
||||
sed -i '7s;^;--index-url=https://pypi-proxy.saltstack.net/root/local/+simple/ --extra-index-url=https://pypi.org/simple\n;' requirements/static/ci/*/*.txt
|
||||
|
||||
- name: Install Python Tools Scripts
|
||||
run: |
|
||||
python3 -m pip install -r requirements/static/ci/py3.10/tools.txt
|
||||
python3 -m pip install 'nox==${{ env.NOX_VERSION }}'
|
||||
- name: Setup Python Tools Scripts
|
||||
uses: ./.github/actions/setup-python-tools-scripts
|
||||
|
||||
- name: Define Nox Session
|
||||
run: |
|
||||
|
@ -282,6 +274,14 @@ jobs:
|
|||
# report_paths: 'artifacts/xml-unittests-output/*.xml'
|
||||
# annotate_only: true
|
||||
|
||||
- name: Install Nox
|
||||
if: always() && steps.download-artifacts-from-vm.outcome == 'success'
|
||||
env:
|
||||
PIP_INDEX_URL: https://pypi-proxy.saltstack.net/root/local/+simple/
|
||||
PIP_EXTRA_INDEX_URL: https://pypi.org/simple
|
||||
run: |
|
||||
python3 -m pip install 'nox==${{ env.NOX_VERSION }}'
|
||||
|
||||
- name: Report Salt Code Coverage(${{ matrix.tests-chunk }})
|
||||
if: always() && steps.download-artifacts-from-vm.outcome == 'success'
|
||||
continue-on-error: true
|
||||
|
|
Loading…
Add table
Reference in a new issue