Skip to content

Rename workflow from "Python package" to "Pytest CI" and remove branc… #6

Rename workflow from "Python package" to "Pytest CI" and remove branc…

Rename workflow from "Python package" to "Pytest CI" and remove branc… #6

Workflow file for this run

name: Pytest CI
on:
push:
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install pytest pytest-cov
- name: Run Pytest (Linux/macOS)
if: runner.os != 'Windows'
run: python -m pytest --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
- name: Run Pytest (Windows)
if: runner.os == 'Windows'
run: python -m pytest --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html