Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pypelines
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
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
HaissLab
Data Management
Pypelines
Commits
21c2d1a4
Commit
21c2d1a4
authored
1 year ago
by
JostTim
Browse files
Options
Downloads
Patches
Plain Diff
updating ci-cd to use auto_fast_docs and publish to pipy
parent
8be8fdb4
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
+34
-0
34 additions, 0 deletions
.gitlab-ci.yml
pyproject.toml
+2
-0
2 additions, 0 deletions
pyproject.toml
tests/tests.py
+7
-2
7 additions, 2 deletions
tests/tests.py
with
43 additions
and
2 deletions
.gitlab-ci.yml
0 → 100644
+
34
−
0
View file @
21c2d1a4
image
:
python:3.11
stages
:
-
documentation
-
publish
-
test
workflow
:
rules
:
-
if
:
$CI_COMMIT_BRANCH == "main"
StaticDocPages
:
stage
:
documentation
script
:
-
python -m pip install --upgrade pip
-
pip install auto_fast_docs
-
auto_fast_docs Inflow --username --platform 'gitlab:pasteur.fr' --group haisslab/data-management --layout src
artifacts
:
paths
:
-
$CI_PROJECT_DIR/public
rules
:
-
if
:
$CI_COMMIT_BRANCH == "main"
publish
:
stage
:
publish
variables
:
TWINE_PASSWORD
:
${PIPY_TOKEN}
TWINE_USERNAME
:
__token__
script
:
-
pip install build twine
-
python -m build
-
python -m twine upload --repository pipy dist/*
rules
:
-
if
:
$CI_COMMIT_BRANCH == "main"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
pyproject.toml
+
2
−
0
View file @
21c2d1a4
...
...
@@ -28,3 +28,5 @@ optional-dependencies = { celery = { file = [
"requirements-celery.txt"
,
]
}
}
version
=
{
attr
=
"pypelines.__version__"
}
[tool.black]
This diff is collapsed.
Click to expand it.
tests/tests.py
+
7
−
2
View file @
21c2d1a4
import
unittest
,
sys
,
os
import
unittest
sys
.
path
.
append
(
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
"
../..
"
)))
# for testing on local version, instead of installed version,
# this may not be desired as testing uninstalled may not catch issues that occur after installation is performed
# comment the next three lines to test installed version
# import sys
# from pathlib import Path
# sys.path.append(str(Path(__file__).resolve().parent / "src"))
from
pypelines
import
examples
from
pypelines.sessions
import
Session
...
...
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