Skip to content
Snippets Groups Projects
Commit 21c2d1a4 authored by JostTim's avatar JostTim
Browse files

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
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
......@@ -28,3 +28,5 @@ optional-dependencies = { celery = { file = [
"requirements-celery.txt",
] } }
version = { attr = "pypelines.__version__" }
[tool.black]
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment