mirror of
https://github.com/karpathy/nanochat.git
synced 2026-03-26 14:45:15 +00:00
Merge 3735eb9723 into 1076f97059
This commit is contained in:
commit
21fd476a89
41
.github/workflows/test.yml
vendored
Normal file
41
.github/workflows/test.yml
vendored
Normal 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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user