Skip to content

fix ci

fix ci #55

Workflow file for this run

name: CI
on: [push, pull_request]
permissions:
contents: read
jobs:
test:
runs-on: macos-13
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: |
pip install '.[test]'
- name: Run tests
run: |
make test
lint:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: "3.8"
cache: pip
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: |
pip install '.[test]'
- name: Run pre-commit
run: make pre-commit
- name: Check if cog needs to be run
run: cog --check README.md # cog needs to be run on macos because using ocrvid