Skip to content
Snippets Groups Projects
Verified Commit 61d99446 authored by Lars Bilke's avatar Lars Bilke
Browse files

[ci] Use extends instead of default.

parent 02ea3aad
No related branches found
No related tags found
1 merge request!2CI with Python template
Pipeline #187466 passed with warnings with stage
in 2 minutes and 13 seconds
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
image: python:3.8
default:
.python-default:
image: python:3.8
cache:
paths:
- .cache/pip
......
py_build:
extends:
- .python-default
script:
- pyproject-build
py_lint:
extends:
- .python-default
script:
- ruff check .
py_tests:
extends:
- .python-default
script:
- coverage run -m pytest
- coverage report
......
......@@ -2,7 +2,7 @@ py_build:
before_script:
- !reference [.ci-setup, script]
- cd $PROJECT_ROOT
- !reference [default, before_script]
- !reference [.python-default, before_script]
parallel:
matrix:
- PROJECT_ROOT: "test/python-template"
......@@ -12,7 +12,7 @@ py_tests:
before_script:
- !reference [.ci-setup, script]
- cd $PROJECT_ROOT
- !reference [default, before_script]
- !reference [.python-default, before_script]
- |
if [ $EXIT_CODE -eq 1 ]; then
sed -i "s/==/!=/g" tests/test_base.py
......@@ -30,7 +30,7 @@ py_lint:
before_script:
- !reference [.ci-setup, script]
- cd $PROJECT_ROOT
- !reference [default, before_script]
- !reference [.python-default, before_script]
parallel:
matrix:
- PROJECT_ROOT: "test/python-template"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment