Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
stages:
- lint_test
- build_release
default:
image: python:3.11
lint:
image: python:$PYTHON_VERSION
interruptible: true
only:
- /^v(?P<major>0|[1-9]\d*)\.(?P<minor>0|[1-9]\d*)\.(?P<patch>0|[1-9]\d*)$/
- main
Expand All @@ -27,6 +30,7 @@ tests:
path: coverage.xml
coverage: /(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/
image: python:$PYTHON_VERSION
interruptible: true
only:
- /^v(?P<major>0|[1-9]\d*)\.(?P<minor>0|[1-9]\d*)\.(?P<patch>0|[1-9]\d*)$/
- main
Expand Down Expand Up @@ -64,12 +68,19 @@ pages:
- docs/**/*
refs:
- /^v(?P<major>0|[1-9]\d*)\.(?P<minor>0|[1-9]\d*)\.(?P<patch>0|[1-9]\d*)$/
- main
script:
- env | sort
- make dev-docs
- make docs
stage: build_release
default:
image: python:3.11
interruptible: true
release:
release:
description: $CI_COMMIT_TAG_MESSAGE
name: $CI_COMMIT_TAG
tag_name: $CI_COMMIT_TAG
image: registry.gitlab.com/gitlab-org/release-cli:latest
only:
- /^v(?P<major>0|[1-9]\d*)\.(?P<minor>0|[1-9]\d*)\.(?P<patch>0|[1-9]\d*)$/
script:
- env | sort
stage: build_release
19 changes: 15 additions & 4 deletions .gitlab-ci.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
stages:
- lint_test
- build_release
default:
image: python:3.11
lint:
image: python:$PYTHON_VERSION
interruptible: true
only:
- /^v(?P<major>0|[1-9]\d*)\.(?P<minor>0|[1-9]\d*)\.(?P<patch>0|[1-9]\d*)$/
- main
Expand Down Expand Up @@ -36,6 +39,7 @@ tests:
path: coverage.xml
coverage: /(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/
image: python:$PYTHON_VERSION
interruptible: true
only:
- /^v(?P<major>0|[1-9]\d*)\.(?P<minor>0|[1-9]\d*)\.(?P<patch>0|[1-9]\d*)$/
- main
Expand Down Expand Up @@ -81,12 +85,19 @@ pages:
- docs/**/*
refs:
- /^v(?P<major>0|[1-9]\d*)\.(?P<minor>0|[1-9]\d*)\.(?P<patch>0|[1-9]\d*)$/
- main
script:
- env | sort
- make dev-docs
- make docs
stage: build_release
default:
image: python:{{ default_python_version }}
interruptible: true
release:
release:
description: $CI_COMMIT_TAG_MESSAGE
name: $CI_COMMIT_TAG
tag_name: $CI_COMMIT_TAG
image: registry.gitlab.com/gitlab-org/release-cli:latest
only:
- /^v(?P<major>0|[1-9]\d*)\.(?P<minor>0|[1-9]\d*)\.(?P<patch>0|[1-9]\d*)$/
script:
- env | sort
stage: build_release
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,12 @@
"minimal_python_version",
"maximal_python_version",
"stages",
"default",
"lint",
"tests",
"package",
"pages",
"release",
"3.8",
"3.9",
"3.10",
Expand Down