Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
94 changes: 86 additions & 8 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,62 @@ name: Development

on:
pull_request:
branches:
- '**'
types: [opened, synchronize, reopened]

jobs:
quality-checks:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.9", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: pip install tox
- name: Run quality checks
run: tox -e quality

type-checks:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.9", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: pip install tox
- name: Run quality checks
run: tox -e types

precommit-checks:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.9", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: pip install pre-commit
- name: Run pre-commit checks
run: pre-commit run --all-files

unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python:
- "3.13"
- "3.9"
python: ["3.9", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
Expand All @@ -28,9 +73,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python:
- "3.13"
- "3.9"
python: ["3.9", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
Expand All @@ -41,3 +84,38 @@ jobs:
run: pip install tox
- name: Run integration tests
run: tox -e test-integration -- -m smoke

build:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.9"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: pip install toml loguru tox
- name: Set environment variables
run: |
echo "GUIDELLM_BUILD_TYPE=dev" >> $GITHUB_ENV
echo "GUIDELLM_BUILD_NUMBER=${{ github.event.pull_request.number }}" >> $GITHUB_ENV
- name: Build the package
run: tox -e build
- name: Upload build artifacts
id: artifact-upload
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: dist/*
compression-level: 6
if-no-files-found: error
retention-days: 30
- name: Comment Install instructions
uses: mshick/add-pr-comment@v2
with:
message: |
Build artifacts (.whl and .tar.gz) are available for download for up to 30 days.
They are located at https://api.github.com/repos/neuralmagic/guidellm/actions/artifacts/${{ steps.artifact-upload.outputs.artifact-id }}
87 changes: 87 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
name: Main

on:
push:
branches:
- main

jobs:
quality-checks:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: pip install tox
- name: Run quality checks
run: tox -e quality

type-checks:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: pip install tox
- name: Run quality checks
run: tox -e types

precommit-checks:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: pip install pre-commit
- name: Run pre-commit checks
run: pre-commit run --all-files

unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.9", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: pip install tox
- name: Run unit tests
run: tox -e test-unit -- -m "smoke or sanity"

integration-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.9", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: pip install tox
- name: Run integration tests
run: tox -e test-integration -- -m smoke
78 changes: 58 additions & 20 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python:
- "3.13"
- "3.12"
- "3.11"
- "3.10"
- "3.9"
python: ["3.9", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
Expand All @@ -24,18 +19,13 @@ jobs:
- name: Install dependencies
run: pip install tox
- name: Run unit tests
run: tox -e test-unit -- --cov-report=term-missing --cov --cov-fail-under=75
run: tox -e test-unit -- -m --cov=guidellm --cov-report=term-missing --cov-fail-under=75

integration-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python:
- "3.13"
- "3.12"
- "3.11"
- "3.10"
- "3.9"
python: ["3.9", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
Expand All @@ -51,12 +41,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python:
- "3.13"
- "3.12"
- "3.11"
- "3.10"
- "3.9"
python: ["3.9", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
Expand All @@ -65,5 +50,58 @@ jobs:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: pip install tox
- name: Run e2e tests
- name: Run integration tests
run: tox -e test-e2e -- -m smoke

build-and-publish:
needs: [unit-tests, integration-tests, e2e-tests]
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.9"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: pip install toml loguru tox
- name: Set environment variables
run: |
echo "GUIDELLM_BUILD_TYPE=nightly" >> $GITHUB_ENV
echo "GUIDELLM_BUILD_NUMBER=${{ github.run_number }}" >> $GITHUB_ENV
- name: Build the package
run: tox -e build
- name: Find wheel artifact
id: find-asset-whl
run: |
echo "::set-output name=asset::$(find dist -name '*.whl')"
- name: Find tar.gz artifact
id: find-asset-targz
run: |
echo "::set-output name=asset::$(find dist -name '*.tar.gz')"
- name: Push wheel to PyPI
uses: neuralmagic/nm-actions/actions/[email protected]
with:
username: ${{ secrets.PYPI_PUBLIC_USER }}
password: ${{ secrets.PYPI_PUBLIC_AUTH }}
whl: ${{ steps.find-asset-whl.outputs.asset }}
- name: Push tar.gz to PyPI
uses: neuralmagic/nm-actions/actions/[email protected]
with:
username: ${{ secrets.PYPI_PUBLIC_USER }}
password: ${{ secrets.PYPI_PUBLIC_AUTH }}
whl: ${{ steps.find-asset-targz.outputs.asset }}
- name: Upload build artifacts
id: artifact-upload
uses: actions/upload-artifact@v4
with:
name: nightly-build-artifacts
path: dist/*
compression-level: 6
if-no-files-found: error
retention-days: 30
- name: Log artifact location
run: |
echo "Artifacts uploaded to: https://api.github.com/repos/neuralmagic/guidellm/actions/artifacts/${{ steps.artifact-upload.outputs.artifact-id }}"
59 changes: 0 additions & 59 deletions .github/workflows/quality.yml

This file was deleted.

Loading