1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
name: Test whl
on:
workflow_call:
inputs:
os:
required: true
type: string
python-version:
required: true
type: string
include:
required: true
type: string
jobs:
test:
name: Test whl (python-${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ${{ fromJson(inputs.os) }}
python-version: ${{ fromJson(inputs.python-version) }}
include: ${{ fromJson(inputs.include) }}
steps:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Download Binaries
uses: actions/download-artifact@v4
with:
name: Binaries
path: dist/
- name: Run junitparser CLI
run: |
pip install dist/junitparser-*.whl
tar -xzf dist/junitparser-*.tar.gz --to-stdout --wildcards "junitparser-*/tests/data/no_fails.xml" > no_fails.xml
junitparser verify no_fails.xml
pip install lxml
junitparser verify no_fails.xml
|