FIX: enforce ruff rule FBT003 #418
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: Codecov | |
on: | |
push: | |
paths: | |
- '**/*.py' # Watch for changes in any Python files | |
- 'pyproject.yml' # Watch for changes in the pyproject.yml file | |
- 'workflows/codecov.yml' | |
workflow_dispatch: | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
python -m pip install pymavlink pytest pytest-cov coverage mock | |
pip install -U . | |
- name: Run tests and collect coverage | |
# run: pytest --cov MethodicConfigurator | |
run: | | |
coverage run -m pytest | |
coverage xml -o unittests/coverage.xml | |
- name: Upload coverage report | |
uses: codecov/[email protected] | |
with: | |
verbose: true | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |