Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:

- name: Test with pytest
run: |
just test-all
just test-all ${{ matrix.mcp-extra == false && '--no-cov' || '' }}

- name: Coverage comment
uses: MishaKav/pytest-coverage-comment@main
Expand Down
15 changes: 8 additions & 7 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

# VARIABLE DEFINITIONS

venv := ".venv"
bin := venv + "/bin"
python_version := "python3.14"
Expand All @@ -8,6 +8,7 @@ target_dirs := "src tests scripts"
image := "docker.io/elementsinteractive/lgtm-ai"

# SENTINELS

venv-exists := path_exists(venv)

# RECIPES
Expand All @@ -34,13 +35,14 @@ clean:
@rm -rf {{ venv }}

alias t := test

# Runs the tests with the specified arguments (any path or pytest argument).
test *test-args='': venv
{{ run }} pytest {{ test-args }} --no-cov

# Runs all tests including coverage report.
test-all: venv
{{ run }} pytest -v --junitxml=pytest.xml --cov-report=xml:coverage.xml
test-all *test-args='': venv
{{ run }} pytest -v --junitxml=pytest.xml --cov-report=xml:coverage.xml {{ test-args }}

# Format all code in the project.
format *files=target_dirs: venv
Expand All @@ -63,10 +65,9 @@ lint-commit: venv

# Runs docker build
build:
docker build -t lgtm-ai .
docker build -t lgtm-ai .

# Pushes the docker image to the registry
push version: build
docker image tag lgtm-ai {{ image }}:{{ version }}
docker image push {{ image }}:{{ version }}

docker image tag lgtm-ai {{ image }}:{{ version }}
docker image push {{ image }}:{{ version }}
Loading
Loading