Skip to content
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

Feature/add python version testing #28

Merged
merged 9 commits into from
May 22, 2024
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
11 changes: 7 additions & 4 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python application
name: Python OpenAI Load Balancer

on:
push:
Expand All @@ -17,13 +17,16 @@ jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v4.1.6
- name: Set up Python 3.12
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5.1.0
with:
python-version: "3.12"
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -38,5 +41,5 @@ jobs:
- name: Upload code coverage to GitHub Artifacts
uses: actions/upload-artifact@v4.3.3
with:
name: coverage-report
name: coverage-report-${{ matrix.python-version}}
path: htmlcov/
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[![Python application](https://github.com/simonkurtz-MSFT/python-openai-loadbalancer/actions/workflows/python-app.yml/badge.svg?branch=main)](https://github.com/simonkurtz-MSFT/python-openai-loadbalancer/actions/workflows/python-app.yml)

# Python OpenAI Load Balancer

[![Python application](https://github.com/simonkurtz-MSFT/python-openai-loadbalancer/actions/workflows/python-app.yml/badge.svg?branch=main)](https://github.com/simonkurtz-MSFT/python-openai-loadbalancer/actions/workflows/python-app.yml) [![Python](https://img.shields.io/pypi/pyversions/azure-core.svg?maxAge=2592000)](https://pypi.org/project/openai-priority-loadbalancer/)

TL;DR! How do I [start](#getting-started)?

---
Expand Down
11 changes: 10 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,25 @@ description = "A multi-backend, prioritization load balancer for OpenAI"
readme = "PACKAGE_README.md"
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python :: 3",
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"httpx"
]
[project.urls]
Changelog = "https://github.com/simonkurtz-MSFT/python-openai-loadbalancer/releases"
Documentation = "https://github.com/simonkurtz-MSFT/python-openai-loadbalancer/blob/main/README.md"
GitHub-Statistics = "https://shields.io/github/stars/simonkurtz-MSFT/python-openai-loadbalancer?style=social"
Homepage = "https://github.com/simonkurtz-MSFT/python-openai-loadbalancer"
Issues = "https://github.com/simonkurtz-MSFT/python-openai-loadbalancer/issues"
Repository = "https://github.com/simonkurtz-MSFT/python-openai-loadbalancer"
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"