Skip to content

[pre-commit.ci] pre-commit autoupdate #107

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #107

Workflow file for this run

# This workflow will run all unittest suites with Python 3.10
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python unit tests
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install coverage
- name: Run all unit tests
run: |
coverage run --source=src -m unittest discover -s tests
coverage xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}