Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: construct model input/output order for endpoint #842

fix: construct model input/output order for endpoint

fix: construct model input/output order for endpoint #842

Workflow file for this run

name: Python Package CI
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
pre-commit:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: pre-commit/[email protected]
test:
needs: pre-commit
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install ".[dev,ml]"
- name: Run tests with pytest
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
pytest tests/unit