Skip to content

Commit 68e7ff5

Browse files
committed
ci: only run coverage in CI
1 parent e337f89 commit 68e7ff5

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ tox:
2626
script:
2727
- pip install poetry==${POETRY_VERSION}
2828
- poetry install
29-
- poetry run tox -e py
29+
- poetry run tox -e coverage
3030
artifacts:
3131
reports:
3232
coverage_report:

tox.ini

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
[tox]
2-
envlist =
2+
requires =
3+
tox>=4.2
4+
env_list =
35
py311
46
py310
57
py39
68
py38
7-
isolated_build = true
8-
skipsdist = true
9+
no_package = true
910

1011
[testenv]
11-
passenv =
12+
commands =
13+
pytest tests/ {posargs}
14+
allowlist_externals =
15+
pytest
16+
terraform
17+
18+
[testenv:coverage]
19+
pass_env =
1220
COVERAGE_FILE
1321
commands =
1422
coverage run --include 'src/**' -m pytest tests/ {posargs}
@@ -28,6 +36,6 @@ commands =
2836
git diff --exit-code
2937
allowlist_externals =
3038
black
31-
git
3239
flake8
40+
git
3341
md_toc

0 commit comments

Comments
 (0)