Skip to content

style: format code with Black #162

style: format code with Black

style: format code with Black #162

Workflow file for this run

name: PyTest
on: [push, pull_request]
permissions:
contents: read
jobs:
test:
name: Test on Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v5
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests with coverage
run: |
pytest --cov=. --cov-report=term-missing --cov-report=html --cov-report=xml -v
- name: Upload coverage report as artifact
if: matrix.python-version == '3.12'
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: htmlcov/
retention-days: 30
- name: Display coverage summary
if: always()
run: |
echo "Coverage report generated successfully"
if [ -f coverage.xml ]; then
echo "Coverage XML report available"
fi