Skip to content

chore(deps): update astral-sh/setup-uv action to v8.3.2 (#13) #23

chore(deps): update astral-sh/setup-uv action to v8.3.2 (#13)

chore(deps): update astral-sh/setup-uv action to v8.3.2 (#13) #23

Workflow file for this run

name: Build and Test
on:
push:
branches:
- master
tags-ignore:
- '**'
paths-ignore:
- '**.md'
pull_request:
branches:
- master
paths-ignore:
- '**.md'
concurrency:
group: build-test-${{ github.ref }}
cancel-in-progress: true
env:
PYTHON_VERSION: '3.13'
UV_VERSION: '0.11.13'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install uv
uses: astral-sh/setup-uv@v8.3.2
with:
version: ${{ env.UV_VERSION }}
- name: Install dependencies
run: |
uv sync --all-groups
- name: Run tests with coverage
env:
FASTAPI_TESTING_PORT_RANGE_START: 8001
FASTAPI_TESTING_PORT_RANGE_END: 9000
run: |
uv run pytest -v --tb=short --cov=src/fastapi_testing --cov-report=xml --cov-report=term
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: descoped/fastapi-testing
build:
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install uv
uses: astral-sh/setup-uv@v8.3.2
with:
version: ${{ env.UV_VERSION }}
- name: Build package
run: |
uv build