Skip to content

fix: pin hatchling + bump pypi-publish (Metadata-Version 2.5 publish … #172

fix: pin hatchling + bump pypi-publish (Metadata-Version 2.5 publish …

fix: pin hatchling + bump pypi-publish (Metadata-Version 2.5 publish … #172

Workflow file for this run

name: Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
test:
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: ${{ matrix.python-version }}
- name: Boundary Check (QWED Rules)
run: python scripts/check_boundary.py
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Run tests with coverage
run: |
pytest tests/ -v --tb=short --cov=qwed_infra --cov-report=xml --cov-report=term-missing
- name: Upload coverage artifact
if: matrix.python-version == '3.11'
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: coverage-report
path: coverage.xml