Merge pull request #32 from tekktrik/dependabot/github_actions/action… #25
This file contains hidden or 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
| # 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@v7 | |
| - 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@v7 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| fail_ci_if_error: true |