Skip to content

write some tests

write some tests #1

Workflow file for this run

name: pytests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
name: Pytest
if: github.event_name == 'pull_request' || github.ref == 'refs/heads/main'
defaults:
run:
working-directory: .
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Install requirements
run: python3 -m pip install -r requirements.txt -r requirements-dev.txt
- name: Run tests and collect coverage
run: python3 -m pytest --cov --cov-report xml .
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v4