forked from agent-lab/smolagents
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
47 lines
981 B
YAML
47 lines
981 B
YAML
name: Python tests
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- ci-*
|
|
|
|
env:
|
|
UV_SYSTEM_PYTHON: 1
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
build-ubuntu:
|
|
permissions:
|
|
contents: read
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
UV_HTTP_TIMEOUT: 600 # max 10min to install deps
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
python-version: ["3.10", "3.12"]
|
|
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
# Setup venv
|
|
- name: Setup uv
|
|
run: |
|
|
pip install --upgrade uv
|
|
|
|
# Install dependencies
|
|
- name: Install dependencies
|
|
run: |
|
|
uv pip install "smolagents[test] @ ."
|
|
|
|
# Run tests
|
|
- name: Test with pytest
|
|
run: |
|
|
pytest ./tests/
|