Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Portal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fachschaft
Portal
Merge requests
!24
Update pipeline to check types and formatting
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Update pipeline to check types and formatting
update-pipeline
into
master
Overview
3
Commits
4
Pipelines
5
Changes
1
Merged
karp
requested to merge
update-pipeline
into
master
6 months ago
Overview
3
Commits
4
Pipelines
5
Changes
1
Expand
0
0
Merge request reports
Viewing commit
2576afc0
Prev
Next
Show latest version
1 file
+
21
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Unverified
2576afc0
Update pipeline to check types and formatting
· 2576afc0
karp
authored
6 months ago
.gitlab-ci.yml
+
21
−
0
Options
@@ -3,6 +3,26 @@
# * Author: (c) 2011-present GitLab B.V.
# * URL: https://docs.gitlab.com/ee/ci/docker/using_kaniko.html#building-a-docker-image-with-kaniko
# * License: CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0)
stages
:
-
test
-
build
variables
:
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pip"
testing
:
image
:
python:latest
cache
:
paths
:
-
.cache/pip
stage
:
test
before_script
:
-
pip install pipenv
-
pipenv requirements --dev > requirements.txt
-
pip install -r requirements.txt
script
:
-
black --check $CI_PROJECT_DIR
-
mypy .
docker-build
:
image
:
@@ -17,3 +37,4 @@ docker-build:
-
/kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
only
:
-
master
needs
:
[
testing
]
Loading