Skip to content

feat: uv

feat: uv #965

Workflow file for this run

name: Test
on:
push:
branches:
- main
- release/**
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11.14", "3.12.12"]
steps:
- name: Configure git
run: |
git config --global user.email "[email protected]"
git config --global user.name "test"
- name: Checkout repo
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up uv
uses: astral-sh/setup-uv@e06108dd0aef18192324c70427afc47652e63a82 # v7.5.0
- name: Install dependencies
run: uv sync --python ${{ matrix.python-version }}
- name: Run tests
run: uv run pytest --cov --junitxml=junit.xml -o junit_family=legacy
- name: Upload results to Codecov
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: getsentry/devservices
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@1b5b448b98e58ba90d1a1a1d9fcb72ca2263be46 # v1.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}