Skip to content

dynamic version RTD #35

dynamic version RTD

dynamic version RTD #35

Workflow file for this run

# This workflow will install Python dependencies,
# run tests and lint with a variety of Python versions/
name: Tests
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.9"]
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }} ${{ matrix.os }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python3 -m pip install -U pip
python3 -m pip install -U setuptools setuptools_scm pep517
python3 -m pip install -e .
pip3 install codecov
- name: Run tests
run: |
coverage run -m unittest discover src
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
fail_ci_if_error: true
flags: unittests
name: codecov-umbrella
verbose: true