This commit is contained in:
Sermet Pekin 2026-03-05 18:52:27 +00:00 committed by GitHub
commit 21fd476a89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

41
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,41 @@
name: Test
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ['3.10']
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Set up uv
uses: astral-sh/setup-uv@v7
- name: Install dependencies (Linux)
run: |
uv sync --extra cpu
- name: Add nanochat to PYTHONPATH (Unix)
run: |
echo "PYTHONPATH=$(pwd):$PYTHONPATH" >> $GITHUB_ENV
- name: Run pytest
run: |
uv run --extra cpu pytest tests/ -v