-
-
Notifications
You must be signed in to change notification settings - Fork 161
67 lines (52 loc) · 1.4 KB
/
ci.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
56
57
58
59
60
61
62
63
64
65
66
67
name: ci
env:
HOMEBREW_NO_INSTALL_CLEANUP: 1
on:
push:
paths:
- "**.py"
- .github/workflows/ci.yml
jobs:
core:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.9', '3.x']
include:
- python-version: '3.x'
os: macos-latest
- python-version: '3.x'
os: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: pip install .[tests,lint]
- run: flake8
- run: mypy
- name: install prereqs (Linux)
if: runner.os == 'Linux'
run: |
sudo apt update
sudo apt install --no-install-recommends ffmpeg
- name: install prereqs (macOS)
if : runner.os == 'macOS'
run: brew install ffmpeg
- name: Install winget
if: runner.os == 'Windows'
uses: Cyberboss/install-winget@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: install prereqs (Windows)
if: runner.os == 'Windows'
run: winget install ffmpeg --disable-interactivity --accept-source-agreements
- name: PyTest non-Windows
run: pytest
if: runner.os != 'Windows'
- name: PyTest Windows
run: pytest
if: runner.os == 'Windows'
env:
FFMPEG_ROOT: $Env:GITHUB_PATH/Microsoft/WinGet/Links