mirror of
https://github.com/karpathy/nanochat.git
synced 2026-02-12 05:29:49 +00:00
multi platform gf wf
This commit is contained in:
parent
3debc92022
commit
e8b86df766
16
.github/workflows/base.yml
vendored
16
.github/workflows/base.yml
vendored
|
|
@ -36,19 +36,31 @@ jobs:
|
|||
run: |
|
||||
uv venv .venv
|
||||
|
||||
- name: Activate virtual environment
|
||||
- name: Activate virtual environment (Unix)
|
||||
if: runner.os != 'Windows'
|
||||
run: |
|
||||
source .venv/bin/activate
|
||||
|
||||
- name: Activate virtual environment (Windows)
|
||||
if: runner.os == 'Windows'
|
||||
run: |
|
||||
.venv\Scripts\activate
|
||||
|
||||
- name: Install dependencies with uv
|
||||
run: |
|
||||
uv pip install transformers>=4.0.0
|
||||
uv pip install . --system
|
||||
|
||||
- name: Add nanochat to PYTHONPATH
|
||||
- name: Add nanochat to PYTHONPATH (Unix)
|
||||
if: runner.os != 'Windows'
|
||||
run: |
|
||||
echo "PYTHONPATH=$(pwd):$PYTHONPATH" >> $GITHUB_ENV
|
||||
|
||||
- name: Add nanochat to PYTHONPATH (Windows)
|
||||
if: runner.os == 'Windows'
|
||||
run: |
|
||||
echo "PYTHONPATH=$PWD;$env:PYTHONPATH" >> $env:GITHUB_ENV
|
||||
|
||||
- name: Install pytest
|
||||
run: |
|
||||
python -m pip install pytest
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user