Skip to content

Commit cbc686f

Browse files
Simplify CI configuration
1 parent 4212679 commit cbc686f

File tree

1 file changed

+8
-32
lines changed

1 file changed

+8
-32
lines changed

.gitlab-ci.yml

Lines changed: 8 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,13 @@ before_script:
4343
report.xml
4444
paths:
4545
- cov_html
46-
needs: ["isort", "black", "reuse"]
46+
needs: ["pre-commit", "reuse"]
4747

4848
unit-tests:python-3.10:
4949
<<: *unit-tests
5050
variables:
5151
PYTHON_VERSION: '3.10-bookworm'
5252

53-
#unit-tests:python-3.11:
54-
# <<: *unit-tests
55-
# allow_failure: true
56-
# variables:
57-
# PYTHON_VERSION: '3.11-rc-bookworm'
58-
5953
.nightly-tests:
6054
only:
6155
- schedules
@@ -75,12 +69,6 @@ nightly-tests:python-3.10:
7569
variables:
7670
PYTHON_VERSION: '3.10-bookworm'
7771

78-
#nightly-tests:python-3.11:
79-
# extends: .nightly-tests
80-
# allow_failure: true
81-
# variables:
82-
# PYTHON_VERSION: '3.11-rc-bookworm'
83-
8472
memory-profile:
8573
only:
8674
- schedules
@@ -93,33 +81,21 @@ memory-profile:
9381
- poetry add --dev memray pytest-memray
9482
script:
9583
- poetry run pytest --memray tests/
96-
needs: ["isort", "black", "reuse"]
84+
needs: ["pre-commit", "reuse"]
9785

98-
mypy:
86+
pre-commit:
9987
stage: lint
10088
image: python:3.10-bookworm
10189
script:
102-
- poetry run mypy
103-
needs: ["isort", "black"]
90+
- poetry run pre-commit run --all-files
91+
needs: []
10492

105-
ruff:
93+
mypy:
10694
stage: lint
10795
image: python:3.10-bookworm
10896
script:
109-
- poetry run ruff src/pynguin
110-
needs: ["isort", "black"]
111-
112-
isort:
113-
stage: build
114-
image: python:3.10-bookworm
115-
script:
116-
- poetry run isort **/*.py -c -v --profile black
117-
118-
black:
119-
stage: build
120-
image: python:3.10-bookworm
121-
script:
122-
- poetry run black --check .
97+
- poetry run mypy
98+
needs: ["pre-commit"]
12399

124100
sphinx:
125101
stage: build

0 commit comments

Comments
 (0)