-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
chore(deps): update dependency https://github.com/lkubb/salt-extensio…
…n-copier to v0.5.0 (#64) Co-authored-by: salt-extensions-renovatebot[bot] <182623858+salt-extensions-renovatebot[bot]@users.noreply.github.com> Co-authored-by: jeanluc <[email protected]>
1 parent
b1f3ae9
commit 4f81a36
Showing
21 changed files
with
866 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
coverage: | ||
status: | ||
project: | ||
default: false | ||
app: | ||
informational: true | ||
paths: | ||
- src/ | ||
tests: | ||
informational: true | ||
paths: | ||
- tests/ | ||
patch: | ||
default: false | ||
app: | ||
informational: true | ||
paths: | ||
- src/ | ||
tests: | ||
informational: true | ||
paths: | ||
- tests/ | ||
github_checks: | ||
annotations: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Autogenerated. Do not edit this by hand, use `copier update`. | ||
--- | ||
_commit: 0.4.5 | ||
_commit: 0.5.0 | ||
_src_path: https://github.com/lkubb/salt-extension-copier | ||
author: EITR Technologies, LLC | ||
author_email: [email protected] | ||
|
@@ -17,15 +17,18 @@ loaders: | |
- state | ||
max_salt_version: '3007' | ||
no_saltext_namespace: false | ||
os_support: | ||
- Linux | ||
- macOS | ||
- Windows | ||
package_name: azurerm | ||
project_name: azurerm | ||
python_requires: '3.8' | ||
relax_pylint: true | ||
salt_version: '3005' | ||
salt_version: '3006' | ||
source_url: https://github.com/salt-extensions/saltext-azurerm | ||
ssh_fixtures: false | ||
summary: Salt Extension for interacting with Microsoft Azure | ||
test_containers: false | ||
tracker_url: https://github.com/salt-extensions/saltext-azurerm/issues | ||
url: https://github.com/salt-extensions/saltext-azurerm | ||
workflows: org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
--- | ||
name: CI | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
deploy-docs: | ||
required: false | ||
type: boolean | ||
default: false | ||
release: | ||
required: false | ||
type: boolean | ||
default: false | ||
version: | ||
required: false | ||
type: string | ||
secrets: | ||
PYPI_API_TOKEN: | ||
required: false | ||
TEST_PYPI_API_TOKEN: | ||
required: false | ||
|
||
|
||
jobs: | ||
get-changed-files: | ||
name: Get Changed Files | ||
uses: ./.github/workflows/get-changed-files.yml | ||
|
||
pre-commit: | ||
name: Pre-Commit | ||
uses: ./.github/workflows/pre-commit-action.yml | ||
needs: | ||
- get-changed-files | ||
with: | ||
changed-files: ${{ needs.get-changed-files.outputs.changed-files }} | ||
|
||
test: | ||
name: Test | ||
needs: | ||
- pre-commit | ||
uses: ./.github/workflows/test-action.yml | ||
|
||
docs: | ||
name: Docs | ||
needs: | ||
- pre-commit | ||
uses: ./.github/workflows/docs-action.yml | ||
|
||
deploy-docs: | ||
name: Deploy Docs | ||
uses: ./.github/workflows/deploy-docs-action.yml | ||
# Only build doc deployments from the default branch of the repo and never for PRs. | ||
if: >- | ||
github.event_name != 'pull_request' && | ||
inputs.deploy-docs && | ||
github.ref == format('refs/heads/{0}', github.event.repository.default_branch) | ||
needs: | ||
- docs | ||
- test | ||
|
||
build-python-package: | ||
name: Python Package | ||
if: ${{ inputs.release && success() }} | ||
uses: ./.github/workflows/package-action.yml | ||
needs: | ||
- pre-commit | ||
with: | ||
version: "${{ inputs.version }}" | ||
|
||
deploy-python-package-test-pypi: | ||
name: Deploy Python Package (Test PyPI) | ||
uses: ./.github/workflows/deploy-package-action.yml | ||
if: ${{ inputs.release && success() }} | ||
needs: | ||
- test | ||
- docs | ||
- build-python-package | ||
secrets: | ||
TEST_PYPI_API_TOKEN: "${{ secrets.TEST_PYPI_API_TOKEN }}" | ||
with: | ||
version: "${{ inputs.version }}" | ||
|
||
deploy-python-package: | ||
name: Deploy Python Package (PyPI) | ||
uses: ./.github/workflows/deploy-package-action.yml | ||
if: ${{ inputs.release && success() }} | ||
needs: | ||
- deploy-python-package-test-pypi | ||
secrets: | ||
PYPI_API_TOKEN: "${{ secrets.PYPI_API_TOKEN }}" | ||
with: | ||
test: false | ||
version: "${{ inputs.version }}" | ||
|
||
set-pipeline-exit-status: | ||
# This step is just so we can make github require this step, to pass checks | ||
# on a pull request instead of requiring all | ||
name: Set the CI Pipeline Exit Status | ||
runs-on: ubuntu-24.04 | ||
if: always() | ||
needs: | ||
- test | ||
- docs | ||
- deploy-docs | ||
- build-python-package | ||
- deploy-python-package-test-pypi | ||
- deploy-python-package | ||
|
||
steps: | ||
- name: Download Exit Status Files | ||
if: always() | ||
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 | ||
with: | ||
path: exitstatus | ||
pattern: exitstatus-* | ||
merge-multiple: true | ||
|
||
- name: Delete Exit Status Artifacts | ||
if: always() | ||
uses: geekyeggo/delete-artifact@7ee91e82b4a7f3339cd8b14beace3d826a2aac39 # v5.1.0 | ||
with: | ||
name: exitstatus-* | ||
useGlob: true | ||
failOnError: false | ||
|
||
- name: Set Pipeline Exit Status | ||
run: | | ||
tree exitstatus | ||
grep -RE 'failure|cancelled' exitstatus/ && exit 1 || exit 0 | ||
- name: Done | ||
if: always() | ||
run: | ||
echo "All workflows finished" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
--- | ||
name: Publish Documentation | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
# This is the name of the regular artifact that should | ||
# be transformed into a GitHub Pages deployment. | ||
artifact-name: | ||
type: string | ||
required: false | ||
default: html-docs | ||
|
||
jobs: | ||
|
||
# The released docs are not versioned currently, only the latest ones are deployed. | ||
# | ||
# Versioning support would require either (better): | ||
# * Rebuilding docs for all versions when a new release is made | ||
# * Version selector support in `furo`: https://github.com/pradyunsg/furo/pull/500 | ||
# | ||
# or (more basic): | ||
# * using the `gh-pages` branch and peaceiris/actions-gh-pages | ||
# to be able to deploy to subdirectories. The implementation via | ||
# actions/deploy-pages always replaces the directory root. | ||
|
||
Deploy-Docs-GH-Pages: | ||
name: Publish Docs to GitHub Pages | ||
|
||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
|
||
permissions: | ||
pages: write | ||
id-token: write | ||
|
||
runs-on: ubuntu-24.04 | ||
|
||
steps: | ||
- name: Download built docs | ||
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 | ||
with: | ||
name: ${{ inputs.artifact-name }} | ||
path: html-docs | ||
|
||
- name: Upload GitHub Pages artifact | ||
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1 | ||
with: | ||
name: html-docs-pages | ||
path: html-docs | ||
|
||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5 | ||
with: | ||
artifact_name: html-docs-pages | ||
|
||
- name: Delete GitHub Pages artifact | ||
if: always() | ||
uses: geekyeggo/delete-artifact@7ee91e82b4a7f3339cd8b14beace3d826a2aac39 # v5.1.0 | ||
with: | ||
name: html-docs-pages | ||
failOnError: false | ||
|
||
- name: Set Exit Status | ||
if: always() | ||
run: | | ||
mkdir exitstatus | ||
echo "${{ job.status }}" > exitstatus/${{ github.job }} | ||
- name: Upload Exit Status | ||
if: always() | ||
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | ||
with: | ||
name: exitstatus-${{ github.job }} | ||
path: exitstatus | ||
if-no-files-found: error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
name: Deploy Salt Extension Python Package | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
test: | ||
type: boolean | ||
required: false | ||
default: true | ||
version: | ||
type: string | ||
required: true | ||
secrets: | ||
PYPI_API_TOKEN: | ||
required: false | ||
TEST_PYPI_API_TOKEN: | ||
required: false | ||
|
||
jobs: | ||
build: | ||
name: Publish Python Package to ${{ fromJSON('["PyPI", "Test PyPI"]')[inputs.test] }} | ||
runs-on: ubuntu-24.04 | ||
|
||
steps: | ||
- name: Download Python Package Artifacts | ||
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 | ||
with: | ||
name: salt-extension-${{ inputs.version }}-packages | ||
path: dist | ||
|
||
- name: Publish distribution to Test PyPI | ||
uses: pypa/gh-action-pypi-publish@c44d2f0e52f028349e3ecafbf7f32561da677277 # v1.10.3 | ||
if: ${{ inputs.test }} | ||
with: | ||
password: ${{ secrets.TEST_PYPI_API_TOKEN }} | ||
repository-url: https://test.pypi.org/legacy/ | ||
|
||
- name: Create GitHub Release | ||
if: ${{ !inputs.test }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
gh release create "$GITHUB_REF_NAME" \ | ||
--repo="$GITHUB_REPOSITORY" \ | ||
--title="${GITHUB_REPOSITORY#*/} ${{ inputs.version }}" \ | ||
--generate-notes \ | ||
dist/* | ||
- name: Publish distribution to PyPI | ||
uses: pypa/gh-action-pypi-publish@c44d2f0e52f028349e3ecafbf7f32561da677277 # v1.10.3 | ||
if: ${{ !inputs.test }} | ||
with: | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
name: Build Documentation | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
Docs: | ||
runs-on: ubuntu-24.04 | ||
timeout-minutes: 10 | ||
|
||
steps: | ||
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python 3.10 For Nox | ||
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install Nox | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install nox | ||
- name: Install Doc Requirements | ||
run: | | ||
nox --force-color -e docs --install-only | ||
- name: Build Docs | ||
env: | ||
SKIP_REQUIREMENTS_INSTALL: true | ||
run: | | ||
nox --force-color -e docs | ||
- name: Upload built docs as artifact | ||
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | ||
with: | ||
name: html-docs | ||
path: docs/_build/html | ||
|
||
- name: Set Exit Status | ||
if: always() | ||
run: | | ||
mkdir exitstatus | ||
echo "${{ job.status }}" > exitstatus/${{ github.job }} | ||
- name: Upload Exit Status | ||
if: always() | ||
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | ||
with: | ||
name: exitstatus-${{ github.job }} | ||
path: exitstatus | ||
if-no-files-found: error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
on: | ||
workflow_call: | ||
outputs: | ||
changed-files: | ||
description: "Changed file JSON output from dorny/paths-filter" | ||
value: ${{ jobs.get-changed-files.outputs.changed-files }} | ||
|
||
jobs: | ||
get-changed-files: | ||
name: Get Changed Files | ||
runs-on: ubuntu-24.04 | ||
permissions: | ||
contents: read # for dorny/paths-filter to fetch a list of changed files | ||
pull-requests: read # for dorny/paths-filter to read pull requests | ||
outputs: | ||
changed-files: ${{ toJSON(steps.changed-files.outputs) }} | ||
|
||
steps: | ||
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | ||
|
||
- name: Get Changed Files | ||
id: changed-files | ||
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2 | ||
with: | ||
token: ${{ github.token }} | ||
list-files: escape | ||
filters: | | ||
repo: | ||
- added|modified: | ||
- '**' | ||
deleted: | ||
- deleted: | ||
- '**' | ||
pre-commit: | ||
- added|modified|deleted: | ||
- .pre-commit-hooks/** | ||
- .pre-commit-config.y?(a)ml | ||
- .pylintrc | ||
- pyproject.toml | ||
- name: Echo Changed Files Output | ||
run: echo "${{ toJSON(steps.changed-files.outputs) }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
name: Salt Extension Python Package | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
version: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build: | ||
name: Build Python Packages (wheel and sdist) | ||
runs-on: ubuntu-24.04 | ||
|
||
steps: | ||
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install build tools | ||
run: >- | ||
python -m | ||
pip install | ||
build | ||
setuptools_scm | ||
--user | ||
- name: Echo Version | ||
run: echo "${{ inputs.version }}" | ||
|
||
- name: Build Wheel | ||
run: python -m build --outdir dist/ | ||
|
||
- name: Upload build artifacts | ||
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | ||
if: always() | ||
with: | ||
name: salt-extension-${{ inputs.version }}-packages | ||
path: dist/* | ||
retention-days: 5 | ||
|
||
- name: Set Exit Status | ||
if: always() | ||
run: | | ||
mkdir exitstatus | ||
echo "${{ job.status }}" > exitstatus/${{ github.job }} | ||
- name: Upload Exit Status | ||
if: always() | ||
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | ||
with: | ||
name: exitstatus-${{ github.job }} | ||
path: exitstatus | ||
if-no-files-found: error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
--- | ||
name: Pre-Commit | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
changed-files: | ||
required: true | ||
type: string | ||
description: JSON string containing information about changed files | ||
|
||
jobs: | ||
Pre-Commit: | ||
name: Pre-Commit | ||
runs-on: ubuntu-24.04 | ||
container: | ||
image: docker.io/library/python:3.10.15-slim-bookworm@sha256:1eb5d76bf3e9e612176ebf5eadf8f27ec300b7b4b9a99f5856f8232fd33aa16e | ||
|
||
steps: | ||
- name: Install System Deps | ||
run: | | ||
apt-get update | ||
apt-get install -y enchant-2 git gcc make zlib1g-dev libc-dev libffi-dev g++ libxml2 libxml2-dev libxslt-dev libcurl4-openssl-dev libssl-dev libgnutls28-dev | ||
git config --global --add safe.directory "$(pwd)" | ||
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | ||
|
||
- name: Install Pre-Commit | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pre-commit | ||
pre-commit install --install-hooks | ||
- name: Check ALL Files On Branch | ||
if: github.event_name != 'pull_request' || fromJSON(inputs.changed-files)['pre-commit'] == 'true' | ||
run: | | ||
pre-commit run --show-diff-on-failure --color=always --all-files | ||
- name: Check Changed Files On PR | ||
if: github.event_name == 'pull_request' && fromJSON(inputs.changed-files)['repo'] == 'true' | ||
run: | | ||
pre-commit run --show-diff-on-failure --color=always --files ${{ fromJSON(inputs.changed-files)['repo_files'] }} | ||
- name: Set Exit Status | ||
if: always() | ||
run: | | ||
mkdir exitstatus | ||
echo "${{ job.status }}" > exitstatus/${{ github.job }} | ||
- name: Upload Exit Status | ||
if: always() | ||
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | ||
with: | ||
name: exitstatus-${{ github.job }} | ||
path: exitstatus | ||
if-no-files-found: error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,293 @@ | ||
--- | ||
name: Testing | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
|
||
Linux: | ||
runs-on: ubuntu-24.04 | ||
timeout-minutes: 30 | ||
|
||
strategy: | ||
fail-fast: false | ||
max-parallel: 4 | ||
matrix: | ||
include: | ||
- {salt-version: "3006.9", python-version: "3.8"} | ||
- {salt-version: "3006.9", python-version: "3.9"} | ||
- {salt-version: "3006.9", python-version: "3.10"} | ||
- {salt-version: "3007.1", python-version: "3.10"} | ||
|
||
steps: | ||
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | ||
with: | ||
fetch-depth: 2 # coverage: Issue detecting commit SHA | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Nox | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install nox | ||
- name: Install Test Requirements | ||
env: | ||
SALT_REQUIREMENT: salt==${{ matrix.salt-version }} | ||
run: | | ||
nox --force-color -e tests-3 --install-only | ||
- name: Test | ||
env: | ||
SALT_REQUIREMENT: salt==${{ matrix.salt-version }} | ||
SKIP_REQUIREMENTS_INSTALL: true | ||
run: | | ||
nox --force-color -e tests-3 -- -vv tests/ | ||
- name: Create CodeCov Flags | ||
if: always() | ||
id: codecov-flags | ||
run: | | ||
echo "flags=$(python -c "import sys; print('{},{},salt_{}'.format('${{ runner.os }}'.replace('-latest', ''), 'py{}{}'.format(*sys.version_info), '_'.join(str(v) for v in '${{ matrix.salt-version }}'.replace('==', '_').split('.'))))")" >> "$GITHUB_OUTPUT" | ||
- name: Upload Project Code Coverage | ||
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0 | ||
with: | ||
file: artifacts/coverage-project.xml | ||
disable_search: true | ||
fail_ci_if_error: false | ||
flags: ${{ steps.codecov-flags.outputs.flags }},project | ||
name: ${{ runner.os }}-Py${{ matrix.python-version }}-Salt${{ matrix.salt-version }}-project | ||
use_oidc: true | ||
version: v0.7.5 | ||
|
||
- name: Upload Tests Code Coverage | ||
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0 | ||
with: | ||
file: artifacts/coverage-tests.xml | ||
disable_search: true | ||
fail_ci_if_error: false | ||
flags: ${{ steps.codecov-flags.outputs.flags }},tests | ||
name: ${{ runner.os }}-Py${{ matrix.python-version }}-Salt${{ matrix.salt-version }}-tests | ||
use_oidc: true | ||
version: v0.7.5 | ||
|
||
- name: Upload Logs | ||
if: always() | ||
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | ||
with: | ||
name: runtests-${{ runner.os }}-py${{ matrix.python-version }}-Salt${{ matrix.salt-version }}.log | ||
path: artifacts/runtests-*.log | ||
|
||
- name: Set Exit Status | ||
if: always() | ||
run: | | ||
mkdir exitstatus | ||
echo "${{ job.status }}" > exitstatus/${{ github.job }}-Py${{ matrix.python-version }}-Salt${{ matrix.salt-version }} | ||
- name: Upload Exit Status | ||
if: always() | ||
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | ||
with: | ||
name: exitstatus-${{ github.job }}-Py${{ matrix.python-version }}-Salt${{ matrix.salt-version }} | ||
path: exitstatus | ||
if-no-files-found: error | ||
|
||
Windows: | ||
runs-on: windows-2022 | ||
timeout-minutes: 40 | ||
|
||
strategy: | ||
fail-fast: false | ||
max-parallel: 2 | ||
matrix: | ||
include: | ||
- {salt-version: "3006.9", python-version: "3.8"} | ||
- {salt-version: "3007.1", python-version: "3.8"} | ||
|
||
steps: | ||
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Download libeay32.dll | ||
run: | | ||
PY_LOC="$(which python.exe)" | ||
export PY_LOC | ||
echo "${PY_LOC}" | ||
PY_DIR="$(dirname "${PY_LOC}")" | ||
export PY_DIR | ||
echo "${PY_DIR}" | ||
curl https://repo.saltproject.io/windows/dependencies/64/libeay32.dll --output "${PY_DIR}/libeay32.dll" | ||
ls -l "${PY_DIR}" | ||
shell: bash | ||
|
||
- name: Install Nox | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install nox | ||
- name: Install Test Requirements | ||
shell: bash | ||
env: | ||
SALT_REQUIREMENT: salt==${{ matrix.salt-version }} | ||
# EXTRA_REQUIREMENTS_INSTALL: Cython | ||
run: | | ||
export PATH="/C/Program Files (x86)/Windows Kits/10/bin/10.0.18362.0/x64;$PATH" | ||
nox --force-color -e tests-3 --install-only | ||
- name: Test | ||
shell: bash | ||
env: | ||
SALT_REQUIREMENT: salt==${{ matrix.salt-version }} | ||
SKIP_REQUIREMENTS_INSTALL: true | ||
run: | | ||
export PATH="/C/Program Files (x86)/Windows Kits/10/bin/10.0.18362.0/x64;$PATH" | ||
nox --force-color -e tests-3 -- -vv tests/ | ||
- name: Create CodeCov Flags | ||
if: always() | ||
id: codecov-flags | ||
run: | | ||
echo "flags=$(python -c "import sys; print('{},{},salt_{}'.format('${{ runner.os }}'.replace('-latest', ''), 'py{}{}'.format(*sys.version_info), '_'.join(str(v) for v in '${{ matrix.salt-version }}'.replace('==', '_').split('.'))))")" >> "$GITHUB_OUTPUT" | ||
- name: Upload Project Code Coverage | ||
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0 | ||
with: | ||
file: artifacts/coverage-project.xml | ||
disable_search: true | ||
fail_ci_if_error: false | ||
flags: ${{ steps.codecov-flags.outputs.flags }},project | ||
name: ${{ runner.os }}-Py${{ matrix.python-version }}-Salt${{ matrix.salt-version }}-project | ||
use_oidc: true | ||
version: v0.7.5 | ||
|
||
- name: Upload Tests Code Coverage | ||
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0 | ||
with: | ||
file: artifacts/coverage-tests.xml | ||
disable_search: true | ||
fail_ci_if_error: false | ||
flags: ${{ steps.codecov-flags.outputs.flags }},tests | ||
name: ${{ runner.os }}-Py${{ matrix.python-version }}-Salt${{ matrix.salt-version }}-tests | ||
use_oidc: true | ||
version: v0.7.5 | ||
|
||
- name: Upload Logs | ||
if: always() | ||
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | ||
with: | ||
name: runtests-${{ runner.os }}-py${{ matrix.python-version }}-Salt${{ matrix.salt-version }}.log | ||
path: artifacts/runtests-*.log | ||
|
||
- name: Set Exit Status | ||
if: always() | ||
run: | | ||
mkdir exitstatus | ||
echo "${{ job.status }}" > exitstatus/${{ github.job }}-Py${{ matrix.python-version }}-Salt${{ matrix.salt-version }} | ||
- name: Upload Exit Status | ||
if: always() | ||
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | ||
with: | ||
name: exitstatus-${{ github.job }}-Py${{ matrix.python-version }}-Salt${{ matrix.salt-version }} | ||
path: exitstatus | ||
if-no-files-found: error | ||
|
||
macOS: | ||
runs-on: macos-14 | ||
timeout-minutes: 40 | ||
|
||
strategy: | ||
fail-fast: false | ||
max-parallel: 2 | ||
matrix: | ||
include: | ||
- {salt-version: "3006.9", python-version: "3.9"} | ||
- {salt-version: "3007.1", python-version: "3.10"} | ||
|
||
steps: | ||
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Nox | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install nox | ||
- name: Install Test Requirements | ||
env: | ||
SALT_REQUIREMENT: salt==${{ matrix.salt-version }} | ||
run: | | ||
nox --force-color -e tests-3 --install-only | ||
- name: Test | ||
env: | ||
SALT_REQUIREMENT: salt==${{ matrix.salt-version }} | ||
SKIP_REQUIREMENTS_INSTALL: true | ||
run: | | ||
nox --force-color -e tests-3 -- -vv tests/ | ||
- name: Create CodeCov Flags | ||
if: always() | ||
id: codecov-flags | ||
run: | | ||
echo "flags=$(python -c "import sys; print('{},{},salt_{}'.format('${{ runner.os }}'.replace('-latest', ''), 'py{}{}'.format(*sys.version_info), '_'.join(str(v) for v in '${{ matrix.salt-version }}'.replace('==', '_').split('.'))))")" >> "$GITHUB_OUTPUT" | ||
- name: Upload Project Code Coverage | ||
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0 | ||
with: | ||
file: artifacts/coverage-project.xml | ||
disable_search: true | ||
fail_ci_if_error: false | ||
flags: ${{ steps.codecov-flags.outputs.flags }},project | ||
name: ${{ runner.os }}-Py${{ matrix.python-version }}-Salt${{ matrix.salt-version }}-project | ||
use_oidc: true | ||
version: v0.7.5 | ||
|
||
- name: Upload Tests Code Coverage | ||
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0 | ||
with: | ||
file: artifacts/coverage-tests.xml | ||
disable_search: true | ||
fail_ci_if_error: false | ||
flags: ${{ steps.codecov-flags.outputs.flags }},tests | ||
name: ${{ runner.os }}-Py${{ matrix.python-version }}-Salt${{ matrix.salt-version }}-tests | ||
use_oidc: true | ||
version: v0.7.5 | ||
|
||
- name: Upload Logs | ||
if: always() | ||
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | ||
with: | ||
name: runtests-${{ runner.os }}-py${{ matrix.python-version }}-Salt${{ matrix.salt-version }}.log | ||
path: artifacts/runtests-*.log | ||
|
||
- name: Set Exit Status | ||
if: always() | ||
run: | | ||
mkdir exitstatus | ||
echo "${{ job.status }}" > exitstatus/${{ github.job }}-Py${{ matrix.python-version }}-Salt${{ matrix.salt-version }} | ||
- name: Upload Exit Status | ||
if: always() | ||
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | ||
with: | ||
name: exitstatus-${{ github.job }}-Py${{ matrix.python-version }}-Salt${{ matrix.salt-version }} | ||
path: exitstatus | ||
if-no-files-found: error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters