Skip to content

Remove python from coverage run invocation #2

Remove python from coverage run invocation

Remove python from coverage run invocation #2

Workflow file for this run

name: Coverage
on: push
jobs:
run-radicalpy-coverage:
name: Run coverage on RadicalPy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python "3.11" 🐍
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: 'pip'
- name: Install packages 📦
run: >-
python -m
pip install -r requirements.txt
- name: Install coverage
run: >-
python -m
pip install coverage
- name: Reset coverage
run: >-
coverage erase
- name: Run coverage
run: >-
coverage run -a -m
unittest
discover -v
- name: Run examples
run: >-
for file in $(ls examples/*.py); do
PYTHONPATH=. coverage run -a $file --fast
done
- name: Create report
run: >-
coverage report && coverage xml && ls -lrt
# - name: Code Coverage Report
# uses: irongut/CodeCoverageSummary@v1.3.0
# with:
# filename: coverage/**/coverage.cobertura.xml