Skip to content

Format code and update ci #1

Format code and update ci

Format code and update ci #1

Workflow file for this run

name: Pip
runs-on: self-hosted

Check failure on line 2 in .github/workflows/pip.yml

View workflow run for this annotation

GitHub Actions / Pip

Invalid workflow file

The workflow is not valid. .github/workflows/pip.yml (Line: 2, Col: 1): Unexpected value 'runs-on'
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
jobs:
build:
strategy:
fail-fast: false
matrix:
platform: [macos-13, ubuntu-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies on Ubuntu
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install libopencv-dev -y
- name: Install dependencies on macOS
if: runner.os == 'macOS'
run: |
brew update
brew install opencv
- name: Install dependencies on Windows
if: runner.os == 'Windows'
run: |
choco install opencv -y
- name: Add requirements
run: python -m pip install --upgrade wheel setuptools
- name: Install Python dependencies
run: |
pip install -r requirements.txt
sudo apt-get update && sudo apt-get install ffmpeg libsm6 libxext6 -y
- name: Build and install
run: pip install .
- name: Test
run: python -m pytest