Skip to content

Relax request body param handling & improve operationId formatting #240

Relax request body param handling & improve operationId formatting

Relax request body param handling & improve operationId formatting #240

Workflow file for this run

name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
fail-fast: false
steps:
- name: πŸ“₯ Checkout code
uses: actions/checkout@v3
- name: 🐍 Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: πŸ“¦ Install Poetry and dependencies
run: |
pip install poetry==1.3.1
poetry install
- name: πŸ“Š Run tests with coverage
run: poetry run pytest --cov=src/ --cov-report=xml --cov-fail-under 90 --cov-config=.coveragerc
- name: πŸ” Type checking with ty
run: poetry run ty check src/
- name: 🎨 Code formatting with black
run: poetry run black --check .
- name: πŸ”§ Linting
run: poetry run ruff check .
- name: πŸ“ˆ Upload coverage to Codecov
uses: codecov/codecov-action@v2
if: always() && github.event_name != 'pull_request'
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./coverage/reports/
env_vars: OS,PYTHON
fail_ci_if_error: true
files: ./coverage.xml
flags: unittests
name: codecov-umbrella-${{ matrix.python-version }}
path_to_write_report: .codecov_report.${{ matrix.python-version }}.txt
verbose: true