-
Notifications
You must be signed in to change notification settings - Fork 285
55 lines (52 loc) · 1.47 KB
/
test_minimal_deps.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Minimal Dependency Tests
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
detect-code-changes:
name: Detect Code Changes
runs-on: ubuntu-latest
outputs:
run-tests: ${{ steps.filter.outputs.run-tests }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
list-files: shell
filters: |
run-tests:
- '!docs/**'
- '!examples/**'
- '!benchmarks/**'
test:
name: Test
needs: detect-code-changes
if: needs.detect-code-changes.outputs.run-tests == 'true'
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.7"]
dependencies: ["minimal", "minimal-extras"]
steps:
- uses: actions/checkout@v4
- name: Set Up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Set Up Environment
run: |
# Install libavformat-dev and libavdevice-dev for PyAV as versions before 9.0
# do not provide wheels including FFMPEG.
sudo apt-get install libavformat-dev libavdevice-dev
make install-uv reset-venv
source .venv/bin/activate
make install-${{ matrix.dependencies }}
- name: Run Tests
run: |
source .venv/bin/activate
export LIGHTLY_SERVER_LOCATION="localhost:-1"
python -m pytest -s -v --runslow