Skip to content

python version updated #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
May 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Bug report
about: Report any issues found and help us improve
title: 'fix: [ISSUE]'
labels: bug
assignees: ''

---

## Describe the bug
A clear and concise description of what the bug is.

## To reproduce
Steps to reproduce the behavior.

## Expected behavior
A clear and concise description of what you expected to happen.

## Environment details
- Version: [e.g. 0.41.2]

## Additional context
Add any other context about the problem here.

## Screenshots
If applicable, add screenshots to help explain your problem.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: 'feat: [ISSUE]'
labels: enhancement
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
35 changes: 35 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
## What

...

## Why

...

## How

...

## Relevant Docs

-

## Related Issues or PRs

-

## Dependencies Versions / Env Variables

-

## Notes on Testing

...

## Screenshots

...

## Checklist

I have read and understood the [Contribution Guidelines]().
97 changes: 50 additions & 47 deletions .github/workflows/ci_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,50 +14,53 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'

- name: Cache tox environments
uses: actions/cache@v3
with:
path: .tox/
key: ${{ runner.os }}-tox-${{ hashFiles('**/pyproject.toml', '**/tox.ini') }}
restore-keys: |
${{ runner.os }}-tox-
- name: Install tox
run: pip install tox

- name: Create test env
shell: bash
run: |
cp sample.env .env
sed -i "s|LLMWHISPERER_API_KEY=|LLMWHISPERER_API_KEY=${{ secrets.LLMWHISPERER_API_KEY }}|" .env

- name: Run tox
id: tox
run: |
tox
- name: Render the report to the PR
uses: marocchino/sticky-pull-request-comment@v2
with:
header: llmw-py-client-test-report
recreate: true
path: llmw-py-client-report.md

- name: Output reports to the job summary when tests fail
shell: bash
run: |
if [ -f "llmw-py-client-report.md" ]; then
{
echo "<details><summary>Worker Test Report</summary>"
echo ""
cat "llmw-py-client-report.md"
echo ""
echo "</details>"
} >> "$GITHUB_STEP_SUMMARY"
fi
- name: Checkout repository
uses: actions/checkout@v3

- name: Install uv
uses: astral-sh/setup-uv@v5
with:
# Install a specific version of uv.
version: "0.6.14"
python-version: 3.12.9

- name: Cache tox environments
uses: actions/cache@v4
with:
path: .tox/
key: ${{ runner.os }}-tox-uv-${{ hashFiles('**/pyproject.toml', '**/tox.ini') }}
restore-keys: |
${{ runner.os }}-tox-uv-

- name: Install tox with UV
run: uv pip install tox

- name: Create test env
shell: bash
run: |
cp sample.env .env
sed -i "s|LLMWHISPERER_API_KEY=|LLMWHISPERER_API_KEY=${{ secrets.LLMWHISPERER_API_KEY }}|" .env

- name: Run tox
id: tox
run: |
tox
- name: Render the report to the PR
uses: marocchino/sticky-pull-request-comment@v2
with:
header: llmw-py-client-test-report
recreate: true
path: llmw-py-client-report.md

- name: Output reports to the job summary when tests fail
shell: bash
run: |
if [ -f "llmw-py-client-report.md" ]; then
{
echo "<details><summary>Worker Test Report</summary>"
echo ""
cat "llmw-py-client-report.md"
echo ""
echo "</details>"
} >> "$GITHUB_STEP_SUMMARY"
fi
27 changes: 0 additions & 27 deletions .github/workflows/main.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish Python Package

on:
release:
types:
- published

jobs:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.release.tag_name }}

- uses: actions/setup-python@v5
with:
python-version: "3.12.9"

- name: Install uv
uses: astral-sh/setup-uv@v5
with:
# Install a specific version of uv.
version: "0.6.14"

- name: Build package
run: uv build

- name: Publish to PyPI
run: uv publish
Loading