Skip to content

Feat/ignore no tests collected #20

Feat/ignore no tests collected

Feat/ignore no tests collected #20

Workflow file for this run

name: Test Python Packages
on:
push:
branches: ["main"]
pull_request:
paths:
- "**/*.py"
jobs:
test-build:
timeout-minutes: 10
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.7"
- run: |
pip install -U pip
pip install flit
flit build
test-package:
timeout-minutes: 10
strategy:
matrix:
include:
- python-version: "3.7"
os: ubuntu-20.04
- python-version: "3.13"
os: ubuntu-24.04
fail-fast: false
runs-on: ${{ matrix.os }}
container:
image: python:${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install pytest pytest-cov
- name: Test with pytest
run: |
pytest --cov pytest_ignore_test_results --cov-report term-missing --cov-report xml --junitxml=results.xml
- name: Pytest coverage comment
if: ${{ github.event_name == 'pull_request' && matrix.python-version == '3.13' }}
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-coverage-path: coverage.xml
junitxml-path: results.xml