Merge pull request #44 from beaugunderson/patch-1 #135
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Setup Poetry | |
uses: abatilo/actions-poetry@v2 | |
- 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@v3 | |
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 |