Skip to content

add test workflow

add test workflow #3

Workflow file for this run

name: run tests
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r test-requirements.txt
- name: Test with pytest
run: |
pip install pytest pytest-cov
pytest test/* --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html