Skip to content

Merge pull request #6 from take-cheeze/macs #1

Merge pull request #6 from take-cheeze/macs

Merge pull request #6 from take-cheeze/macs #1

Workflow file for this run

name: Python package
on:
workflow_dispatch: {}
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.10", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest pytest-xdist thop onnxruntime torch --extra-index-url https://download.pytorch.org/whl/cpu
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install -e .
- name: Test with pytest
run: |
pytest -n $(nproc)