Skip to content
Open
Show file tree
Hide file tree
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
16 changes: 8 additions & 8 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <package>
# install with all the dev dependencies: uv pip install -e .[dev]
dev = [
Expand Down