Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/unit-tests-python-uv.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Unit tests (uv)

on:
workflow_call:
inputs:
PYTHON_VERSION:
description: 'Python version'
default: ''
required: false
type: string
TESTS_PATH:
description: 'Path to tests'
default: '.'
required: false
type: string
PYTEST_ARGS:
description: 'Additional pytest arguments'
default: '-vv'
required: false
type: string
jobs:
unit-testing:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5

- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true

- name: Set up Python
run: uv python install ${{ inputs.PYTHON_VERSION }}

- name: Install dependencies
run: uv sync --frozen --all-extras --dev

- name: Run tests
run: uv run pytest ${{ inputs.TESTS_PATH }} ${{ inputs.PYTEST_ARGS }}
Loading