-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1 KB
/
codecov.yml
File metadata and controls
43 lines (38 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# SPDX-FileCopyrightText: 2026 Alec Delaney
# SPDX-License-Identifier: MIT
name: Run code tests
on:
push:
branches:
- 'main'
pull_request:
paths:
- '.github/workflows/codecov.yml'
- 'pyproject.toml'
- 'circuitpython_functools'
- 'tests/**'
permissions: read-all
jobs:
codecov:
runs-on: ubuntu-latest
steps:
- name: Setup Python 3.x
uses: actions/setup-python@v6
with:
python-version: 3.x
- name: Checkout the repository
uses: actions/checkout@v6
- name: Install base requirements
run: |
pip install -e .
- name: Install test requirements
run: |
pip install pytest pytest-cov
- name: Run tests
run: |
pytest --cov=circuitpython_functools --cov-branch --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v6
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true