Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Carbon Cycle Assessment
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
urbanoikos
models
Carbon Cycle Assessment
Commits
8227eba6
Commit
8227eba6
authored
1 year ago
by
Sebastian Schubert
Browse files
Options
Downloads
Patches
Plain Diff
Added CI pipeline
parent
5b3f12c8
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+50
-0
50 additions, 0 deletions
.gitlab-ci.yml
pyproject.toml
+2
-0
2 additions, 0 deletions
pyproject.toml
requirements-dev.txt
+3
-0
3 additions, 0 deletions
requirements-dev.txt
with
55 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
50
−
0
View file @
8227eba6
stages
:
-
linting
# Official language image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/python/tags/
image
:
python:latest
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
variables
:
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pip"
VENV_DEV
:
"
.venv"
# Pip's cache doesn't store the python packages
# https://pip.pypa.io/en/stable/topics/caching/
#
# If you want to also cache the installed packages, you have to install
# them in a virtualenv and cache it as well.
cache
:
-
key
:
pip_cache
paths
:
-
.cache/pip
when
:
always
-
key
:
"
$CI_PIPELINE_ID"
# only used for one pipeline
paths
:
-
$VENV_DEV
when
:
always
before_script
:
-
python --version
# For debugging
-
|-
if [ ! -d $VENV_DEV ]; then
python3 -m venv $VENV_DEV
source $VENV_DEV/bin/activate
python3 -m pip install -r requirements-dev.txt
else
source $VENV_DEV/bin/activate
fi
isort
:
stage
:
linting
dependencies
:
[]
script
:
-
isort . --check-only
black
:
stage
:
linting
dependencies
:
[]
script
:
-
black --check .
This diff is collapsed.
Click to expand it.
pyproject.toml
0 → 100644
+
2
−
0
View file @
8227eba6
[tool.isort]
profile
=
"black"
This diff is collapsed.
Click to expand it.
requirements-dev.txt
0 → 100644
+
3
−
0
View file @
8227eba6
-r requirements.txt
black==23.1.0
isort==5.10.1
\ No newline at end of file
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