generated from habedi/template-python-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
109 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Publish to PyPI | ||
|
||
on: | ||
workflow_dispatch: # Enable manual runs | ||
|
||
jobs: | ||
|
||
# Run tests before publishing | ||
call_tests: | ||
uses: ./.github/workflows/tests.yml | ||
|
||
publish_to_pypi: | ||
runs-on: ubuntu-latest | ||
needs: call_tests | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set Up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install Poetry | ||
run: | | ||
pip install poetry | ||
- name: Install Dependencies | ||
run: | | ||
poetry install | ||
# - name: Update Version | ||
# run: | | ||
# poetry version patch # Use 'minor' or 'major' for minor or major version bumps | ||
|
||
- name: Build and Publish Package | ||
run: | | ||
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} | ||
poetry publish --build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
digraph Elements { | ||
fontname = "Helvetica,Arial,sans-serif" | ||
layout = dot | ||
rankdir = LR | ||
node [ | ||
fontname = "Helvetica,Arial,sans-serif", | ||
shape = box, | ||
style = "filled,rounded", | ||
color = "lightblue", | ||
fillcolor = "white", | ||
penwidth = 2 | ||
] | ||
edge [ | ||
fontname = "Helvetica,Arial,sans-serif", | ||
color = "black" | ||
] | ||
|
||
subgraph cluster_0 { | ||
label = "User Inputs" | ||
style = "dashed" | ||
color = "lightgrey" | ||
u [label = "User", fillcolor = "lightgreen"] | ||
q [label = "Job Description", fillcolor = "lightyellow"] | ||
als [label = "Existing Application Letters", fillcolor = "lightyellow"] | ||
ei [label = "Extra Instructions", fillcolor = "lightyellow"] | ||
} | ||
|
||
subgraph cluster_1 { | ||
label = "Processing" | ||
style = "dashed" | ||
color = "lightgrey" | ||
api [label = "Embedding Model", fillcolor = "lightpink"] | ||
db [label = "Vector Database", fillcolor = "lightgrey"] | ||
cp [label = "Custom Prompt", fillcolor = "lightyellow"] | ||
} | ||
|
||
subgraph cluster_2 { | ||
label = "Output" | ||
style = "dashed" | ||
color = "lightgrey" | ||
llm [label = "Language Model", fillcolor = "lightpink"] | ||
ld [label = "Letter Draft", fillcolor = "lightyellow"] | ||
} | ||
|
||
u -> q [label = "provides"] | ||
u -> als [label = "provides"] | ||
u -> ei [label = "provides"] | ||
q -> api [label = "processed by"] | ||
als -> api [label = "processed by"] | ||
api -> db [label = "stores in"] | ||
als -> db [label = "stores in"] | ||
db -> cp [label = "retrieves from"] | ||
cp -> llm [label = "forms"] | ||
ei -> llm [label = "augments"] | ||
llm -> ld [label = "generates"] | ||
ld -> u [label = "reviews"] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.