File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6060
6161 - name : Test with pytest
6262 run : |
63- just test-all
63+ just test-all ${{ matrix.mcp-extra == false && '--no-cov' || '' }}
6464
6565 - name : Coverage comment
6666 uses : MishaKav/pytest-coverage-comment@main
Original file line number Diff line number Diff line change 1-
21# VARIABLE DEFINITIONS
2+
33venv := " .venv"
44bin := venv + " /bin"
55python_version := " python3.14"
@@ -8,6 +8,7 @@ target_dirs := "src tests scripts"
88image := " docker.io/elementsinteractive/lgtm-ai"
99
1010# SENTINELS
11+
1112venv-exists := path_exists (venv)
1213
1314# RECIPES
@@ -34,13 +35,14 @@ clean:
3435 @ rm -rf {{ venv }}
3536
3637alias t := test
38+
3739# Runs the tests with the specified arguments (any path or pytest argument).
3840test * test -args = ' ': venv
3941 {{ run }} pytest {{ test-args }} --no-cov
4042
4143# Runs all tests including coverage report.
42- test-all : venv
43- {{ run }} pytest -v --junitxml=pytest.xml --cov-report=xml:coverage.xml
44+ test-all * test - args = ' ' : venv
45+ {{ run }} pytest -v --junitxml=pytest.xml --cov-report=xml:coverage.xml {{ test-args }}
4446
4547# Format all code in the project.
4648format * files = target_dirs: venv
@@ -63,10 +65,9 @@ lint-commit: venv
6365
6466# Runs docker build
6567build :
66- docker build -t lgtm-ai .
68+ docker build -t lgtm-ai .
6769
6870# Pushes the docker image to the registry
6971push version : build
70- docker image tag lgtm-ai {{ image }} :{{ version }}
71- docker image push {{ image }} :{{ version }}
72-
72+ docker image tag lgtm-ai {{ image }} :{{ version }}
73+ docker image push {{ image }} :{{ version }}
You can’t perform that action at this time.
0 commit comments