Fix for junit failure while using with --early-exit FIX #485 #347
Workflow file for this run
This file contains hidden or 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: CI | |
on: [push, pull_request] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.13 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.13 | |
- name: Setup and install tools | |
run: python -m pip install ruff | |
- name: ruff format check | |
run: ruff format --check | |
- name: ruff check | |
run: ruff check | |
test: | |
strategy: | |
fail-fast: false | |
max-parallel: 8 | |
matrix: | |
python-version: [3.7, 3.13] | |
os: [ubuntu-22.04, windows-latest, macos-latest] | |
exclude: | |
- os: macos-latest | |
python-version: 3.7 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Setup build and test environment | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
- name: Build Python Package | |
run: | | |
python -m pip install -r requirements-dev.txt | |
- name: Unit Test with pytest | |
run: | | |
coverage run -p --source radish -m pytest tests/unit/ --junitxml=junit/unit-test-results.xml | |
- name: Functional Test with pytest | |
run: | | |
coverage run -p --source radish -m pytest tests/functional/ --junitxml=junit/functional-test-results.xml | |
- name: Integration Test with pytest | |
run: | | |
coverage run -p --source radish -m pytest tests/integration/ --junitxml=junit/integration-test-results.xml | |
env: | |
PYTHONIOENCODING: UTF-8 | |
- name: Report code coverage | |
run: | | |
coverage combine | |
coverage report | |
coverage xml | |
coverage html | |
- name: Upload coverage to Codecov | |
# codecov only runs on Linux | |
if: startsWith(matrix.os, 'ubuntu-') | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./coverage.xml | |
flags: unittests | |
name: codecov-umbrella |