Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OQS Sphinx Theme
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source
OQS Sphinx Theme
Commits
d2a61969
Commit
d2a61969
authored
11 months ago
by
Viacheslav Ostroukh
Browse files
Options
Downloads
Patches
Plain Diff
add .gitlab-ci.yml
parent
71281914
No related branches found
Tags
v0.1.0rc1
Tags containing commit
No related merge requests found
Checking pipeline status
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+82
-0
82 additions, 0 deletions
.gitlab-ci.yml
with
82 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
82
−
0
View file @
d2a61969
include
:
-
project
:
opensource/ci
ref
:
main
file
:
python/common.yml
workflow
:
rules
:
-
if
:
$CI_COMMIT_TAG =~ /^v[0-9]+.[0-9]+.[0-9]+(rc[0-9]+)?$/
-
when
:
never
stages
:
-
"
package"
-
"
test-package"
-
"
test-deploy"
-
"
deploy"
Build
:
stage
:
package
image
:
quay.io/pypa/manylinux_2_28_x86_64:latest
extends
:
-
.package-cache
variables
:
MANYLINUX_PYTHON_VERSION
:
"
cp312-cp312"
CONDA_SUBDIR
:
"
linux-64"
rules
:
-
when
:
on_success
script
:
-
'
"/opt/python/${MANYLINUX_PYTHON_VERSION}/bin/python"
-m
build
--wheel
--outdir
dist'
artifacts
:
paths
:
-
"
dist"
Twine check
:
stage
:
test-package
image
:
"
$IMAGE_MICROMAMBA"
needs
:
-
job
:
Build
artifacts
:
true
before_script
:
-
micromamba --yes install twine
script
:
-
twine check dist/*
rules
:
-
when
:
on_success
Release (test PyPI)
:
stage
:
test-deploy
before_script
:
-
micromamba --yes install twine
needs
:
-
job
:
Build
artifacts
:
true
-
job
:
Twine check
artifacts
:
false
script
:
-
twine upload --disable-progress-bar dist/*
variables
:
TWINE_USERNAME
:
__token__
TWINE_REPOSITORY_URL
:
https://test.pypi.org/legacy/
TWINE_PASSWORD
:
"
${PYPI_API_TOKEN_TEST}"
Release
:
stage
:
deploy
before_script
:
-
micromamba --yes install twine
needs
:
-
job
:
Release (test PyPI)
artifacts
:
false
script
:
-
twine upload --disable-progress-bar dist/*
variables
:
TWINE_USERNAME
:
__token__
TWINE_REPOSITORY_URL
:
https://upload.pypi.org/legacy/
TWINE_PASSWORD
:
"
${PYPI_API_TOKEN_PROD}"
allow_failure
:
false
rules
:
-
if
:
$CI_COMMIT_TAG =~ /^v[0-9]+.[0-9]+.[0-9]+$/
when
:
on_success
-
when
:
manual
allow_failure
:
true
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