-
Notifications
You must be signed in to change notification settings - Fork 17
42 lines (42 loc) · 1.36 KB
/
ci.yaml
File metadata and controls
42 lines (42 loc) · 1.36 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
42
name: ci
on:
push:
branches:
- "**"
tags-ignore:
- v*
jobs:
test:
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
runs-on: ${{ matrix.os }}
steps:
- name: checkout
uses: actions/checkout@v4
- name: Setup Poetry
uses: abatilo/actions-poetry@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: poetry
cache-dependency-path: poetry.lock
- name: Setup FFMPEG
uses: FedericoCarboni/setup-ffmpeg@v3
if: ${{ ! startsWith(matrix.os, 'macos') }}
- name: Setup Dependencies with Homebrew
if: startsWith(matrix.os, 'macos')
run: |
brew install llvm ffmpeg
echo "CC=$(brew --prefix)/opt/llvm/bin/clang" >> $GITHUB_ENV
echo "CXX=$(brew --prefix)/opt/llvm/bin/clang++" >> $GITHUB_ENV
- name: Setup Project
run: make init-project
- name: Normalize OpenCV package
run: |
poetry run python -m pip uninstall -y opencv-python-headless
poetry run python -m pip install --no-deps --force-reinstall opencv-contrib-python-headless
- name: Run precommit
run: make precommit