Adding support for pytest.Item in additional_information #98
Workflow file for this run
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
name: tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- "main" | |
jobs: | |
testing: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python: ["3.8", "3.9", "3.10", "3.11"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install tox | |
- name: Run pytest with coverage | |
continue-on-error: true | |
run: | | |
tox -e test -- --junitxml=results.xml tests/ | |
- name: Test report | |
uses: mikepenz/action-junit-report@v4 | |
if: always() | |
with: | |
check_name: Test Report (${{ matrix.os }}, ${{ matrix.python }}) | |
report_paths: "**/results.xml" | |
detailed_summary: true | |
- name: Convert coverage | |
run: | | |
tox -e coverage | |
# Currently no official account for organization | |
# - uses: codecov/codecov-action@v2 | |
# with: | |
# flags: unittests | |
# name: codecov-umbrella | |
# fail_ci_if_error: true |