Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
GUM-compliant_neural-network_uncertainty-propagation
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ludwig10_masters_thesis
GUM-compliant_neural-network_uncertainty-propagation
Commits
b9c2d94b
Verified
Commit
b9c2d94b
authored
2 years ago
by
Björn Ludwig
Browse files
Options
Downloads
Patches
Plain Diff
Revert "ci(release): quickly execute release job"
This reverts commit
7adbc7ac
.
parent
7adbc7ac
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+122
-123
122 additions, 123 deletions
.gitlab-ci.yml
with
122 additions
and
123 deletions
.gitlab-ci.yml
+
122
−
123
View file @
b9c2d94b
...
...
@@ -17,127 +17,127 @@ variables:
.install-pip-tools
:
&install-pip-tools
-
pip install --upgrade pip-tools
#
.install-dev-deps: &install-dev-deps
#
- *install-pip-tools
#
- python -m piptools sync dev-requirements.txt
#
- pip install .
#
#
.install-reporter-and-upload-to-codecov: &install-reporter-and-upload-to-codecov
#
- curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import
#
- curl -Os https://uploader.codecov.io/latest/linux/codecov
#
- curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
#
- curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM.sig
#
- gpgv codecov.SHA256SUM.sig codecov.SHA256SUM
#
- shasum -a 256 -c codecov.SHA256SUM
#
- chmod +x codecov
#
- ./codecov -t ${CODECOV_TOKEN}
#
#
.install-deps: &install-deps
#
- *install-pip-tools
#
- python -m piptools sync requirements.txt
#
#
before_script:
#
- pip install --upgrade pip virtualenv
#
- virtualenv venv
#
- source venv/bin/activate
#
- pip install --upgrade pip
#
#
quick-test:
#
rules:
#
- if: $CI_COMMIT_TAG == null
#
script:
#
- *install-dev-deps
#
- pytest -m "not webtest" --verbose --cov=pytorch_gum_uncertainty_propagation
#
--junitxml=junit.xml --cov-branch
#
- coverage xml
#
- *install-reporter-and-upload-to-codecov
#
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
#
artifacts:
#
when: always
#
paths:
#
- junit.xml
#
- coverage.xml
#
reports:
#
junit: junit.xml
#
coverage_report:
#
coverage_format: cobertura
#
path: coverage.xml
#
environment: testing
#
#
online-test:
#
rules:
#
- if: $CI_COMMIT_TAG == null
#
script:
#
- *install-dev-deps
#
- pytest -m webtest --verbose --cov=pytorch_gum_uncertainty_propagation
#
--junitxml=junit.xml
#
- coverage xml
#
- *install-reporter-and-upload-to-codecov
#
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
#
artifacts:
#
when: always
#
paths:
#
- junit.xml
#
- coverage.xml
#
reports:
#
junit: junit.xml
#
coverage_report:
#
coverage_format: cobertura
#
path: coverage.xml
#
environment: testing
#
#
mypy:
#
rules:
#
- if: $CI_COMMIT_TAG == null
#
changes:
#
- "**/*.py"
#
script:
#
- *install-dev-deps
#
- mypy .
#
#
pylint:
#
rules:
#
- if: $CI_COMMIT_TAG == null
#
changes:
#
- "**/*.py"
#
script:
#
- *install-dev-deps
#
- pip install --upgrade pylint
#
- pylint src/pytorch_gum_uncertainty_propagation
#
#
flake8:
#
rules:
#
- if: $CI_COMMIT_TAG == null
#
changes:
#
- "**/*.py"
#
script:
#
- pip install --upgrade flake8 Flake8-pyproject
#
- flake8 .
#
#
sphinx:
#
rules:
#
- if: $CI_COMMIT_TAG == null
#
script:
#
- *install-pip-tools
#
- apt update
#
- apt -y install pandoc
#
- python -m piptools sync docs-requirements.txt
#
- pip install .
#
- sphinx-build -W --keep-going docs/ docs/_build
#
#
black:
#
rules:
#
- if: $CI_COMMIT_TAG == null
#
changes:
#
- "**/*.py"
#
script:
#
- pip install --upgrade black[jupyter]
#
- black --check .
#
#
cffconvert:
#
script:
#
- pip install --upgrade cffconvert
#
- cffconvert --validate
.install-dev-deps
:
&install-dev-deps
-
*install-pip-tools
-
python -m piptools sync dev-requirements.txt
-
pip install .
.install-reporter-and-upload-to-codecov
:
&install-reporter-and-upload-to-codecov
-
curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import
-
curl -Os https://uploader.codecov.io/latest/linux/codecov
-
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
-
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM.sig
-
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM
-
shasum -a 256 -c codecov.SHA256SUM
-
chmod +x codecov
-
./codecov -t ${CODECOV_TOKEN}
.install-deps
:
&install-deps
-
*install-pip-tools
-
python -m piptools sync requirements.txt
before_script
:
-
pip install --upgrade pip virtualenv
-
virtualenv venv
-
source venv/bin/activate
-
pip install --upgrade pip
quick-test
:
rules
:
-
if
:
$CI_COMMIT_TAG ==
null
script
:
-
*install-dev-deps
-
pytest -m "not webtest" --verbose --cov=pytorch_gum_uncertainty_propagation
--junitxml=junit.xml --cov-branch
-
coverage xml
-
*install-reporter-and-upload-to-codecov
coverage
:
'
/(?i)total.*?
(100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts
:
when
:
always
paths
:
-
junit.xml
-
coverage.xml
reports
:
junit
:
junit.xml
coverage_report
:
coverage_format
:
cobertura
path
:
coverage.xml
environment
:
testing
online-test
:
rules
:
-
if
:
$CI_COMMIT_TAG ==
null
script
:
-
*install-dev-deps
-
pytest -m webtest --verbose --cov=pytorch_gum_uncertainty_propagation
--junitxml=junit.xml
-
coverage xml
-
*install-reporter-and-upload-to-codecov
coverage
:
'
/(?i)total.*?
(100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts
:
when
:
always
paths
:
-
junit.xml
-
coverage.xml
reports
:
junit
:
junit.xml
coverage_report
:
coverage_format
:
cobertura
path
:
coverage.xml
environment
:
testing
mypy
:
rules
:
-
if
:
$CI_COMMIT_TAG ==
null
changes
:
-
"
**/*.py"
script
:
-
*install-dev-deps
-
mypy .
pylint
:
rules
:
-
if
:
$CI_COMMIT_TAG ==
null
changes
:
-
"
**/*.py"
script
:
-
*install-dev-deps
-
pip install --upgrade pylint
-
pylint src/pytorch_gum_uncertainty_propagation
flake8
:
rules
:
-
if
:
$CI_COMMIT_TAG ==
null
changes
:
-
"
**/*.py"
script
:
-
pip install --upgrade flake8 Flake8-pyproject
-
flake8 .
sphinx
:
rules
:
-
if
:
$CI_COMMIT_TAG ==
null
script
:
-
*install-pip-tools
-
apt update
-
apt -y install pandoc
-
python -m piptools sync docs-requirements.txt
-
pip install .
-
sphinx-build -W --keep-going docs/ docs/_build
black
:
rules
:
-
if
:
$CI_COMMIT_TAG ==
null
changes
:
-
"
**/*.py"
script
:
-
pip install --upgrade black[jupyter]
-
black --check .
cffconvert
:
script
:
-
pip install --upgrade cffconvert
-
cffconvert --validate
release
:
rules
:
...
...
@@ -145,10 +145,9 @@ release:
stage
:
deploy
script
:
-
*install-pip-tools
-
printenv
-
python -m piptools sync release-requirements.txt
-
git config --global user.name "Bjoern Ludwig"
-
git config --global user.email "bjoern.ludwig@ptb.de"
-
git remote set-url origin https://github.com/BjoernLudwigPTB/pytorch_gum_uncertainty_propagation.git
-
semantic-release
--verbosity=DEBUG
publish
-
semantic-release publish
environment
:
production
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