Skip to content

Update uvicorn requirement from ^0.25.0 to ^0.26.0 (#88) #102

Update uvicorn requirement from ^0.25.0 to ^0.26.0 (#88)

Update uvicorn requirement from ^0.25.0 to ^0.26.0 (#88) #102

Workflow file for this run

name: "Build"
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
name: Ruff & Pytest
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
poetry-version: [1.6.1]
steps:
- name: Build project
uses: TeKrop/install-python-poetry-project@v3
with:
python-version: ${{ matrix.python-version }}
poetry-version: ${{ matrix.poetry-version }}
- name: Run Ruff code analysis
run: ruff .
- name: Run tests suite
run: |
PYTHONPATH=app/ python -m pytest -v --cov-fail-under=80 --cov-report=html --cov=app/ tests/
PERCENT=$(cat htmlcov/index.html | grep "pc_cov" | awk -F '>' '{print $2}' | awk -F '%' '{print $1}')
echo "COVERAGE=$PERCENT" >> $GITHUB_ENV
- name: Update test coverage badge
if: github.event_name == 'push'
uses: schneegans/[email protected]
with:
auth: ${{ secrets.GIST_SECRET }}
gistID: 1362ebafcd51d3f65dae7935b1d322eb
filename: pytest.json
label: coverage
message: ${{ env.COVERAGE }}%
minColorRange: 50
maxColorRange: 90
valColorRange: ${{ env.COVERAGE }}
- name: Update python version badge
if: github.event_name == 'push'
uses: schneegans/[email protected]
with:
auth: ${{ secrets.GIST_SECRET }}
gistID: 15a234815aa74059953a766a10e92688
filename: python-version.json
label: python
message: v${{ matrix.python-version }}
color: blue