Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
plotID_python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
plotID
plotID_python
Commits
36af83e4
Commit
36af83e4
authored
2 years ago
by
Mayr, Hannes
Browse files
Options
Downloads
Patches
Plain Diff
Resolve "Automated build"
parent
cb27fbe0
No related branches found
No related tags found
2 merge requests
!59
Version v0.2.3
,
!55
Resolve "Automated build"
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+29
-0
29 additions, 0 deletions
.gitlab-ci.yml
plotid/__init__.py
+1
-1
1 addition, 1 deletion
plotid/__init__.py
with
30 additions
and
1 deletion
.gitlab-ci.yml
+
29
−
0
View file @
36af83e4
...
...
@@ -4,6 +4,8 @@ stages:
-
testing
-
security
-
docs
-
package
-
release
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
...
...
@@ -17,24 +19,28 @@ before_script:
-
pip install --user --no-warn-script-location -r requirements.txt
# install dependencies from file
PEP8
:
stage
:
linting
needs
:
[]
script
:
-
pip install flake8
-
flake8 --count --max-line-length=88 .
Pylint
:
stage
:
linting
needs
:
[]
script
:
-
pip install pylint
-
find . -type f -name '*.py' | xargs pylint -rn --rcfile='plotid/.pylintrc'
# Find all python files and check the code with pylint
Autoformatting
:
stage
:
linting
needs
:
[]
script
:
-
pip install black
-
black --check --verbose --diff --color .
Typechecker
:
stage
:
linting
needs
:
[]
script
:
-
pip install mypy
-
mypy --ignore-missing-imports --strict plotid examples
...
...
@@ -42,6 +48,7 @@ Typechecker:
test
:
stage
:
testing
needs
:
[]
tags
:
-
docker
script
:
...
...
@@ -85,6 +92,28 @@ include:
-
template
:
Security/Dependency-Scanning.gitlab-ci.yml
-
template
:
Security/License-Scanning.gitlab-ci.yml
build_and_upload
:
stage
:
package
script
:
-
pip install build twine
-
python3 -m build
-
TWINE_PASSWORD=${CI_PYPI_TOKEN} TWINE_USERNAME=__token__ python3 -m twine upload dist/*
rules
:
-
if
:
$CI_COMMIT_TAG
release_job
:
stage
:
release
image
:
registry.gitlab.com/gitlab-org/release-cli:latest
rules
:
-
if
:
$CI_COMMIT_TAG
# Run this job when a tag is created
before_script
:
-
echo "No before script pls"
script
:
-
echo "running release_job"
release
:
# See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
tag_name
:
'
$CI_COMMIT_TAG'
description
:
'
$CI_COMMIT_TAG'
# You can override the included template(s) by including variable overrides
# SAST customization: https://docs.gitlab.com/ee/user/application_security/sast/#customizing-the-sast-settings
# Secret Detection customization: https://docs.gitlab.com/ee/user/application_security/secret_detection/#customizing-settings
...
...
This diff is collapsed.
Click to expand it.
plotid/__init__.py
+
1
−
1
View file @
36af83e4
...
...
@@ -10,5 +10,5 @@ research data, the plot is based on. Additionally, the script that created the
plot will also be copied to the directory.
"""
__version__
=
"
0.2.2
"
__version__
=
"
0.2.2
-b3
"
__author__
=
"
Institut Fluidsystemtechnik within nfdi4ing at TU Darmstadt
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment