mithra-flow 1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mithra_flow-1.0/.github/workflows/publish.yml +54 -0
- mithra_flow-1.0/.gitignore +11 -0
- mithra_flow-1.0/PKG-INFO +723 -0
- mithra_flow-1.0/README.md +692 -0
- mithra_flow-1.0/examples/nested_flow.py +154 -0
- mithra_flow-1.0/pyproject.toml +57 -0
- mithra_flow-1.0/src/mithra_flow/__init__.py +5 -0
- mithra_flow-1.0/src/mithra_flow/decorator.py +639 -0
- mithra_flow-1.0/src/mithra_flow/models.py +37 -0
- mithra_flow-1.0/src/mithra_flow/version.py +1 -0
- mithra_flow-1.0/tests/test_mflow.py +220 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v*"
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
test:
|
|
13
|
+
name: Test
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
steps:
|
|
16
|
+
- name: Check out repository
|
|
17
|
+
uses: actions/checkout@v4
|
|
18
|
+
|
|
19
|
+
- name: Set up Python
|
|
20
|
+
uses: actions/setup-python@v5
|
|
21
|
+
with:
|
|
22
|
+
python-version: "3.12"
|
|
23
|
+
|
|
24
|
+
- name: Install package with test dependencies
|
|
25
|
+
run: python -m pip install -e '.[test,examples]'
|
|
26
|
+
|
|
27
|
+
- name: Run tests
|
|
28
|
+
run: python -m pytest -q
|
|
29
|
+
|
|
30
|
+
publish:
|
|
31
|
+
name: Publish
|
|
32
|
+
needs: test
|
|
33
|
+
runs-on: ubuntu-latest
|
|
34
|
+
environment: pypi
|
|
35
|
+
permissions:
|
|
36
|
+
contents: read
|
|
37
|
+
id-token: write
|
|
38
|
+
steps:
|
|
39
|
+
- name: Check out repository
|
|
40
|
+
uses: actions/checkout@v4
|
|
41
|
+
|
|
42
|
+
- name: Set up Python
|
|
43
|
+
uses: actions/setup-python@v5
|
|
44
|
+
with:
|
|
45
|
+
python-version: "3.12"
|
|
46
|
+
|
|
47
|
+
- name: Install build
|
|
48
|
+
run: python -m pip install --upgrade build
|
|
49
|
+
|
|
50
|
+
- name: Build distributions
|
|
51
|
+
run: python -m build
|
|
52
|
+
|
|
53
|
+
- name: Publish distributions to PyPI
|
|
54
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|