Update dependency fastapi to v0.115.8 #576
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
branches: ["main", "develop"] | |
pull_request: | |
branches: ["main", "develop"] | |
workflow_dispatch: | |
jobs: | |
test: | |
# disable this job right now as we have no tests worth speaking of | |
if: false | |
runs-on: ubuntu-latest | |
env: | |
SKIP_COVERAGE_UPLOAD: false | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
services: | |
postgres: | |
image: postgres:17 | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: fastapi-template-test | |
ports: | |
- 5432:5432 | |
options: | |
--health-cmd pg_isready --health-interval 10s --health-timeout 5s | |
--health-retries 5 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
enable-cache: true | |
cache-dependency-glob: "uv.lock" | |
- name: Set up Python ${{ matrix.python-version }} | |
run: uv python install ${{ matrix.python-version }} | |
- name: Run tests | |
# For example, using `pytest` | |
run: | |
uv run --all-extras -p ${{ matrix.python-version }} pytest tests | |
--cov-report=xml | |
- name: Run codacy-coverage-reporter | |
env: | |
CODACY_CONFIGURED: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
if: ${{ env.CODACY_CONFIGURED != ''}} | |
uses: codacy/codacy-coverage-reporter-action@v1 | |
continue-on-error: true | |
with: | |
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
coverage-reports: ./coverage.xml |