Skip to content

Extend tag support for simple tags #200

Extend tag support for simple tags

Extend tag support for simple tags #200

Workflow file for this run

name: CI
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Setup and install tools
run: |
python -m pip install --upgrade black
- name: black format check
run: black --check --line-length 120 radish/ tests/ setup.py
test:
strategy:
fail-fast: false
max-parallel: 6
matrix:
python-version: [3.7, 3.8, 3.9, "3.10"]
os: [ubuntu-latest, windows-latest, macOS-latest]
include:
- os: ubuntu-18.04
python-version: 3.5
- os: ubuntu-18.04
python-version: 3.6
# 3.11 fails on windows because of lxml
# https://github.com/radish-bdd/radish/actions/runs/3613586264/jobs/6089436445
- os: ubuntu-latest
python-version: 3.11
- os: macOS-latest
python-version: 3.11
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
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: Update pytest on >= Python3.10
if: ${{ matrix.python-version == '3.10' || matrix.python-version == '3.11' }}
run: |
python -m pip install pytest==7.0.1
- 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@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests
name: codecov-umbrella