diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index f9804fc..e86f96b 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -26,14 +26,11 @@ jobs: - name: Set timezone run: sudo timedatectl set-timezone Europe/Vienna - - name: Install project deps - run: uv pip install .[dev] - - name: Run pre-commit with prek - run: uv run prek run -a + run: uv run --dev prek run -a - name: Test with pytest - run: uv run pytest + run: uv run --dev pytest # integration tests for DetectMateService - name: Checkout DetectMateService @@ -42,13 +39,16 @@ jobs: repository: ait-detectmate/DetectMateService path: DetectMateService - - name: Install DetectMateService (using local DetectMateLibrary) + - name: Prepare DetectMateService (using local DetectMateLibrary) working-directory: DetectMateService run: | # remove the git-based dependency so we don't override the local lib sed -i '/detectmatelibrary @ git+/d' pyproject.toml - uv pip install .[dev] + + - name: Prepare packages + working-directory: DetectMateService + run: uv pip install . - name: Run DetectMateService library integration tests working-directory: DetectMateService - run: uv run pytest tests/library_integration + run: pytest tests/library_integration diff --git a/pyproject.toml b/pyproject.toml index 47c8bde..286ccda 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ dependencies = [ "kafka-python>=2.3.0", ] -[project.optional-dependencies] +[dependency-groups] # add dependencies in this section with: uv add --optional dev # install with all the dev dependencies: uv pip install -e .[dev] dev = [