Copy the files in the new repo for public release

This commit is contained in:
gabrieldemarmiesse
2026-01-12 11:25:16 +01:00
commit f5fa328a58
54 changed files with 6411 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
name: Run Tests
on:
push:
branches: [ main ]
pull_request:
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Install dependencies
run: uv sync --dev
- name: Run pre-commit
uses: pre-commit/action@v3.0.0
pytest:
runs-on: ubuntu-latest
needs: pre-commit
strategy:
matrix:
python-version: ['3.10', '3.14']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Install dependencies
run: uv sync --dev -p ${{ matrix.python-version }}
- name: Run pytest
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: uv run -p ${{ matrix.python-version }} pytest ./tests