CICD-042 · Give matrix artifact names unique suffixes
Encyclopedia · Matrices and sharding · All snippets
Previous · CICD-041 · Next · CICD-043
1. Where it fits
- Placement Under the artifact upload step of the matrix job.
- Prerequisites workspace whose runtime dependencies match the chosen target combinations.
- Platforms github-actions.
2. Copy the snippet
yaml
uses: actions/upload-artifact@v4
with:
name: "junit-${{ matrix.os }}-${{ matrix.python }}"
path: report.xml3. How it works
Matrix values become part of the artifact name on upload. Distinct names let the collector retrieve each OS and interpreter report.
4. Verify the result
With two dimensions, both values must be present in the name.
Validation syntax-validated (YAML parse). Status definitions.