1
0
Fork 1
mirror of https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git synced 2025-07-12 19:09:56 +03:00

CI: combine lint and test stages (MR 2478)

While there are places where it would make some sense to catch issues in
the lint stage, most of the lint failures are things like shellchcek or
ruff which don't actually effect the functionality of the code.

Let's just run pytest at the same time as these to speed up the overall
pipeline.

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
Caleb Connolly 2024-11-04 10:47:15 +01:00
parent e268ec24d5
commit 515fd99552
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -21,13 +21,12 @@ before_script: &global_before_scripts
- "if grep -q VERSION_ID=3\\.17 /etc/os-release; then apk add py3-tomli; fi"
stages:
- lint
- deploy
- test
- deploy
- integration-test
codespell:
stage: lint
stage: test
script:
- ".ci/codespell.sh"
@ -59,22 +58,22 @@ pytest-python3.10:
image: alpine:3.17
ruff:
stage: lint
stage: test
script:
- ".ci/ruff.sh"
shellcheck:
stage: lint
stage: test
script:
- ".ci/shellcheck.sh"
vermin:
stage: lint
stage: test
script:
- ".ci/vermin.sh"
mr-settings:
stage: lint
stage: test
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
before_script:
@ -85,12 +84,12 @@ mr-settings:
- "python3 ./check_mr_settings.py"
mypy:
stage: lint
stage: test
script:
- ".ci/mypy.sh"
docs:
stage: lint
stage: test
script:
- ".ci/docs.sh"
artifacts: