mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-18 13:54:03 +02:00
fix github worklfows testing python code
This commit is contained in:
20
.github/workflows/build-push-backend.yml
vendored
20
.github/workflows/build-push-backend.yml
vendored
@@ -19,28 +19,20 @@ on:
|
||||
|
||||
jobs:
|
||||
run-tests:
|
||||
name: Run Python Tests
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: [ "3.13" ]
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install uv
|
||||
run: pip install uv
|
||||
uses: astral-sh/setup-uv@v5
|
||||
|
||||
- name: Install dependencies
|
||||
run: uv pip install .[dev]
|
||||
- name: Install the project
|
||||
run: uv sync --locked --all-extras --dev
|
||||
|
||||
- name: Run tests
|
||||
run: pytest
|
||||
run: uv run pytest tests
|
||||
|
||||
build-and-push:
|
||||
needs: run-tests
|
||||
|
||||
Reference in New Issue
Block a user