Skip to content

Commit b8d6f35

Browse files
authored
Merge pull request #24 from Zipstack/fix/python-version
python version updated
2 parents dda4f84 + dcc28ab commit b8d6f35

20 files changed

+1211
-1748
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Bug report
3+
about: Report any issues found and help us improve
4+
title: 'fix: [ISSUE]'
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
## Describe the bug
11+
A clear and concise description of what the bug is.
12+
13+
## To reproduce
14+
Steps to reproduce the behavior.
15+
16+
## Expected behavior
17+
A clear and concise description of what you expected to happen.
18+
19+
## Environment details
20+
- Version: [e.g. 0.41.2]
21+
22+
## Additional context
23+
Add any other context about the problem here.
24+
25+
## Screenshots
26+
If applicable, add screenshots to help explain your problem.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: 'feat: [ISSUE]'
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/pull_request_template.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
## What
2+
3+
...
4+
5+
## Why
6+
7+
...
8+
9+
## How
10+
11+
...
12+
13+
## Relevant Docs
14+
15+
-
16+
17+
## Related Issues or PRs
18+
19+
-
20+
21+
## Dependencies Versions / Env Variables
22+
23+
-
24+
25+
## Notes on Testing
26+
27+
...
28+
29+
## Screenshots
30+
31+
...
32+
33+
## Checklist
34+
35+
I have read and understood the [Contribution Guidelines]().

.github/workflows/ci_test.yaml

Lines changed: 50 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -14,50 +14,53 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- name: Checkout repository
18-
uses: actions/checkout@v3
19-
20-
- name: Set up Python
21-
uses: actions/setup-python@v4
22-
with:
23-
python-version: '3.9'
24-
25-
- name: Cache tox environments
26-
uses: actions/cache@v3
27-
with:
28-
path: .tox/
29-
key: ${{ runner.os }}-tox-${{ hashFiles('**/pyproject.toml', '**/tox.ini') }}
30-
restore-keys: |
31-
${{ runner.os }}-tox-
32-
- name: Install tox
33-
run: pip install tox
34-
35-
- name: Create test env
36-
shell: bash
37-
run: |
38-
cp sample.env .env
39-
sed -i "s|LLMWHISPERER_API_KEY=|LLMWHISPERER_API_KEY=${{ secrets.LLMWHISPERER_API_KEY }}|" .env
40-
41-
- name: Run tox
42-
id: tox
43-
run: |
44-
tox
45-
- name: Render the report to the PR
46-
uses: marocchino/sticky-pull-request-comment@v2
47-
with:
48-
header: llmw-py-client-test-report
49-
recreate: true
50-
path: llmw-py-client-report.md
51-
52-
- name: Output reports to the job summary when tests fail
53-
shell: bash
54-
run: |
55-
if [ -f "llmw-py-client-report.md" ]; then
56-
{
57-
echo "<details><summary>Worker Test Report</summary>"
58-
echo ""
59-
cat "llmw-py-client-report.md"
60-
echo ""
61-
echo "</details>"
62-
} >> "$GITHUB_STEP_SUMMARY"
63-
fi
17+
- name: Checkout repository
18+
uses: actions/checkout@v3
19+
20+
- name: Install uv
21+
uses: astral-sh/setup-uv@v5
22+
with:
23+
# Install a specific version of uv.
24+
version: "0.6.14"
25+
python-version: 3.12.9
26+
27+
- name: Cache tox environments
28+
uses: actions/cache@v4
29+
with:
30+
path: .tox/
31+
key: ${{ runner.os }}-tox-uv-${{ hashFiles('**/pyproject.toml', '**/tox.ini') }}
32+
restore-keys: |
33+
${{ runner.os }}-tox-uv-
34+
35+
- name: Install tox with UV
36+
run: uv pip install tox
37+
38+
- name: Create test env
39+
shell: bash
40+
run: |
41+
cp sample.env .env
42+
sed -i "s|LLMWHISPERER_API_KEY=|LLMWHISPERER_API_KEY=${{ secrets.LLMWHISPERER_API_KEY }}|" .env
43+
44+
- name: Run tox
45+
id: tox
46+
run: |
47+
tox
48+
- name: Render the report to the PR
49+
uses: marocchino/sticky-pull-request-comment@v2
50+
with:
51+
header: llmw-py-client-test-report
52+
recreate: true
53+
path: llmw-py-client-report.md
54+
55+
- name: Output reports to the job summary when tests fail
56+
shell: bash
57+
run: |
58+
if [ -f "llmw-py-client-report.md" ]; then
59+
{
60+
echo "<details><summary>Worker Test Report</summary>"
61+
echo ""
62+
cat "llmw-py-client-report.md"
63+
echo ""
64+
echo "</details>"
65+
} >> "$GITHUB_STEP_SUMMARY"
66+
fi

.github/workflows/main.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/pypi-publish.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Publish Python Package
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
pypi-publish:
10+
name: upload release to PyPI
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
id-token: write
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
ref: ${{ github.event.release.tag_name }}
19+
20+
- uses: actions/setup-python@v5
21+
with:
22+
python-version: "3.12.9"
23+
24+
- name: Install uv
25+
uses: astral-sh/setup-uv@v5
26+
with:
27+
# Install a specific version of uv.
28+
version: "0.6.14"
29+
30+
- name: Build package
31+
run: uv build
32+
33+
- name: Publish to PyPI
34+
run: uv publish

0 commit comments

Comments
 (0)