Skip to content

Merge pull request #52 from thorn-oss/fix/update-upstream-again #146

Merge pull request #52 from thorn-oss/fix/update-upstream-again

Merge pull request #52 from thorn-oss/fix/update-upstream-again #146

Workflow file for this run

name: ci
on:
push:
branches:
- "**"
tags-ignore:
- v*
jobs:
test:
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
os: ["ubuntu-latest", "windows-latest", "macos-latest", "macos-13"] # macOS 13 is the latest version with the old architecture
runs-on: ${{ matrix.os }}
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Setup Poetry
uses: abatilo/actions-poetry@v3
- 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: checkout
uses: actions/checkout@v4
- uses: actions/cache@v4
name: Cache the venv
with:
path: ./.venv
key: venv-${{ matrix.os }}-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}
- name: Setup Project
run: make init-project
- name: Run precommit
run: make precommit