Skip to content

build(deps-dev): bump pytest-cov from 4.1.0 to 5.0.0 #295

build(deps-dev): bump pytest-cov from 4.1.0 to 5.0.0

build(deps-dev): bump pytest-cov from 4.1.0 to 5.0.0 #295

Workflow file for this run

name: Tests
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
env:
PYTEST_ADDOPTS: "--color=yes"
permissions: {}
jobs:
build:
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
os: [windows-latest]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Update pip, wheel, setuptools, build
run: |
python -m pip install -U pip wheel setuptools build twine
- name: Install testing dependencies
run: |
python -m pip install -r requirements-dev.txt
- name: Install self
run: |
python -m pip install .
- name: Generate coverage report
run: |
pytest --cov=src/windows_toasts --cov=scripts/ --cov-report=xml tests/
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black isort flake8
- name: Format per black code style
uses: psf/black@stable
- name: Order imports
uses: isort/isort-action@master
- name: Enforce flake8
run: flake8