Skip to content

Add GitHub action for pytest #1

Add GitHub action for pytest

Add GitHub action for pytest #1

Workflow file for this run

---
name: pytest
on:
pull_request:
branches:
- main
jobs:
pytest:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-cov
- name: Test with pytest
run: |
pytest test \
--doctest-modules \
--junitxml=junit/test-results.xml \
--cov=com \
--cov-report=xml \
--cov-report=html