Skip to content

Commit

Permalink
fixup! fixup! .gitlab-ci.yml: python: parallel unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alesmrazek committed Jan 21, 2025
1 parent af89692 commit 2ff93b6
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions .gitlab-ci.manager.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
stages:
- check
- sanity
- test

default:
.python: &python
image: $IMAGE_PREFIX/manager:$IMAGE_TAG
variables:
PYTHON_INTERPRETER: python3.12
before_script:
- poetry --version
- poetry env use $PYTHON_INTERPRETER
Expand All @@ -12,39 +14,36 @@ default:
- linux
- amd64

examples:py3.12:
stage: check
python:examples:
<<: *python
stage: sanity
script:
- poetry install --all-extras --only main,dev
- poe examples
variables:
PYTHON_INTERPRETER: python3.12

check:py3.12:
stage: check
python:check:
<<: *python
stage: sanity
script:
- poetry install --all-extras --only main,dev,lint
- poe check
variables:
PYTHON_INTERPRETER: python3.12

format:py3.12:
stage: check
python:format:
<<: *python
stage: sanity
script:
- poetry install --all-extras --only main,dev,lint
- poe format
variables:
PYTHON_INTERPRETER: python3.12

lint:py3.12:
stage: check
python:lint:
<<: *python
stage: sanity
script:
- poetry install --all-extras --only main,dev,lint
- poe lint
variables:
PYTHON_INTERPRETER: python3.12

unit:
python:unit:
<<: *python
stage: test
parallel:
matrix:
Expand Down

0 comments on commit 2ff93b6

Please sign in to comment.