mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 19:16:57 +08:00
62 lines
1.8 KiB
YAML
62 lines
1.8 KiB
YAML
name: Verification Pipeline for ArtifactCleanup
|
|
|
|
on:
|
|
push:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
Params:
|
|
uses: pyTooling/Actions/.github/workflows/Parameters.yml@dev
|
|
with:
|
|
name: Example
|
|
python_version_list: "3.12 3.13"
|
|
system_list: "ubuntu windows"
|
|
|
|
Testing:
|
|
name: Artifact generation ${{ matrix.system }}-${{ matrix.python }}
|
|
needs:
|
|
- Params
|
|
runs-on: ${{ matrix.runs-on }}
|
|
strategy:
|
|
matrix:
|
|
include: ${{ fromJson(needs.Params.outputs.python_jobs) }}
|
|
steps:
|
|
- name: Content creation for ${{ matrix.system }}-${{ matrix.python }}
|
|
run: echo "${{ matrix.runs-on }}-${{ matrix.python }}" >> artifact.txt
|
|
|
|
- name: 📤 Upload artifact for ${{ matrix.system }}-${{ matrix.python }}
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: ${{ fromJson(needs.Params.outputs.artifact_names).unittesting_xml }}-${{ matrix.system }}-${{ matrix.python }}
|
|
path: artifact.txt
|
|
if-no-files-found: error
|
|
retention-days: 1
|
|
|
|
Package:
|
|
name: Package generation
|
|
needs:
|
|
- Params
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- name: Package creation
|
|
run: echo "Package" >> package.txt
|
|
|
|
- name: 📤 Upload artifact for ${{ matrix.system }}-${{ matrix.python }}
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: ${{ fromJson(needs.Params.outputs.artifact_names).package_all }}
|
|
path: package.txt
|
|
if-no-files-found: error
|
|
retention-days: 1
|
|
|
|
ArtifactCleanUp:
|
|
uses: pyTooling/Actions/.github/workflows/ArtifactCleanUp.yml@dev
|
|
needs:
|
|
- Params
|
|
- Testing
|
|
- Package
|
|
with:
|
|
package: ${{ fromJson(needs.Params.outputs.artifact_names).package_all }}
|
|
remaining: |
|
|
${{ fromJson(needs.Params.outputs.artifact_names).unittesting_xml }}-*
|