forked from programasweights/programasweights-python
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 1.31 KB
/
Copy pathtest.yml
File metadata and controls
41 lines (36 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: tests
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install (hermetic deps only)
# Install httpx + pytest and the package itself without pulling the heavy
# llama-cpp-python build. The hermetic tests below never import the
# llama.cpp runtime (it is imported lazily only when running inference).
run: |
python -m pip install --upgrade pip
python -m pip install httpx pytest
python -m pip install -e . --no-deps
- name: Run hermetic tests
# Scoped to tests that need no network, no model download, and no
# PAW_API_KEY. Auth tests (@needs_auth) auto-skip without a key; the
# network/model-download tests in test_sdk.py are excluded here and can
# be run separately against a live server.
run: |
pytest \
tests/test_cli_auth.py \
tests/test_runtime_registry_sdk.py \
tests/test_sdk.py::TestInstallAndImport