-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 1.02 KB
/
test.yml
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
name: Test
on: [push, pull_request]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12"]
marker: ["not llm", "llm0", "llm1", "llm2", "llm3"]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v2
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
# - name: Install FFmpeg
# if: ${{ matrix.marker != 'not llm' }}
# run: sudo apt install -y ffmpeg
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --all-extras --dev --python ${{ matrix.python-version }} --python-preference only-system
- name: Run tests
run: uv run pytest -m "${{ matrix.marker }}" tests
- name: Lint
if: ${{ matrix.marker == 'not llm' }}
run: uv run ruff check && uv run ruff format --check