Skip to content

[Refactor] load dataset #24

[Refactor] load dataset

[Refactor] load dataset #24

Workflow file for this run

name: Run pytest
on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- 'utilization/**'
- 'tests/**'
- '.github/workflows/**'
jobs:
build:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8.18"]
steps:
- uses: szenius/[email protected]
with:
timezoneLinux: "Europe/Berlin"
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
run: pip install uv pip -U
- name: Install dependencies
run: uv pip install -r tests/requirements-tests.txt --system
- name: Install isolation dependencies
run: uv pip install vllm --no-build-isolation --system
- name: Run tests
run: pytest --junit-xml=test-results.xml
- name: Surface failing tests
if: always()
uses: pmeier/pytest-results-action@main
with:
# A list of JUnit XML files, directories containing the former, and wildcard
# patterns to process.
# See @actions/glob for supported patterns.
path: test-results.xml
# (Optional) Add a summary of the results at the top of the report
summary: true
# (Optional) Select which results should be included in the report.
# Follows the same syntax as `pytest -r`
display-options: fEX
# (Optional) Fail the workflow if no JUnit XML was found.
fail-on-empty: true
# (Optional) Title of the test results section in the workflow summary
title: Test results