Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
python-mumps
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
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
kwant
python-mumps
Commits
d243a4c9
Verified
Commit
d243a4c9
authored
1 year ago
by
Anton Akhmerov
Browse files
Options
Downloads
Patches
Plain Diff
set up a pypi upload job
parent
f3644498
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#161892
failed
1 year ago
Stage: test
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+40
-0
40 additions, 0 deletions
.gitlab-ci.yml
environment.yml
+1
-0
1 addition, 0 deletions
environment.yml
with
41 additions
and
0 deletions
.gitlab-ci.yml
+
40
−
0
View file @
d243a4c9
...
...
@@ -27,3 +27,43 @@ pre-commit:
script
:
-
git config --global --add safe.directory $CI_PROJECT_DIR
-
pre-commit run --all-files
publish to test pypi
:
needs
:
-
build and test
-
pre-commit
rules
:
-
if
:
'
$CI_COMMIT_TAG
=~
/^v[0-9]+\.[0-9]+\.[0-9]+.*\+test$/'
# vX.Y.Z.post1+test
cache
:
paths
:
-
micromamba
before_script
:
-
mkdir -p micromamba
-
export MAMBA_ROOT_PREFIX=micromamba
-
micromamba create -yf environment.yml
-
eval "$(micromamba shell hook --shell bash)"
-
micromamba activate mumps
script
:
-
python -m build -s
-
twine check dist/*
-
twine upload -u __token__ -p $PYPI_TEST_TOKEN --repository testpypi dist/*
publish to pypi
:
needs
:
-
build and test
-
pre-commit
rules
:
-
if
:
'
$CI_COMMIT_TAG
=~
/^v[0-9]+\.[0-9]+\.[0-9]+[^+]*$/'
# No +test
cache
:
paths
:
-
micromamba
before_script
:
-
mkdir -p micromamba
-
export MAMBA_ROOT_PREFIX=micromamba
-
micromamba create -yf environment.yml
-
eval "$(micromamba shell hook --shell bash)"
-
micromamba activate mumps
script
:
-
python -m build -s
-
twine check dist/*
-
twine upload -u __token__ -p $PYPI_TOKEN dist/*
This diff is collapsed.
Click to expand it.
environment.yml
+
1
−
0
View file @
d243a4c9
...
...
@@ -13,5 +13,6 @@ dependencies:
-
compilers
-
cython
-
pytest
-
twine
-
pip
:
-
spin
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