Dev #152
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: Coverage | |
on: [push, pull_request] | |
jobs: | |
run: | |
name: CI | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/[email protected] | |
- name: Display Python Version | |
run: python --version | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip tox PySide6 | |
pip install coverage pytest pytest-cov | |
- name: Run Tests | |
run: | | |
tox | |
pytest --cov=QStyler --cov=tests | |
coverage report | |
coverage xml -o coverage.xml | |
- name: Codecov | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./coverage.xml | |
verbose: true | |
flags: unittests | |
fail_ci_if_error: true |