Skip to content

Commit 733813d

Browse files
authored
chore: bump all dependencies and skip coverage without all extras installed (#198)
1 parent c06087a commit 733813d

5 files changed

Lines changed: 1324 additions & 511 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
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

justfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
21
# VARIABLE DEFINITIONS
2+
33
venv := ".venv"
44
bin := venv + "/bin"
55
python_version := "python3.14"
@@ -8,6 +8,7 @@ target_dirs := "src tests scripts"
88
image := "docker.io/elementsinteractive/lgtm-ai"
99

1010
# SENTINELS
11+
1112
venv-exists := path_exists(venv)
1213

1314
# RECIPES
@@ -34,13 +35,14 @@ clean:
3435
@rm -rf {{ venv }}
3536

3637
alias t := test
38+
3739
# Runs the tests with the specified arguments (any path or pytest argument).
3840
test *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.
4648
format *files=target_dirs: venv
@@ -63,10 +65,9 @@ lint-commit: venv
6365

6466
# Runs docker build
6567
build:
66-
docker build -t lgtm-ai .
68+
docker build -t lgtm-ai .
6769

6870
# Pushes the docker image to the registry
6971
push 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 }}

0 commit comments

Comments
 (0)