Compare commits

...

8 commits

Author SHA1 Message Date
George Hotz
1019a3d8f8
Merge branch 'master' into mac_pytest 2026-02-02 23:40:03 +08:00
George Hotz
4d7b16f330 in the pyenv 2026-01-31 13:37:31 +08:00
George Hotz
814a1d59e2 fresh db 2026-01-31 13:22:03 +08:00
George Hotz
de52fa6116 comment 2026-01-31 13:19:15 +08:00
George Hotz
067747560b setup env 2026-01-31 13:18:21 +08:00
George Hotz
d3c808d90b 3 min 2026-01-31 13:09:03 +08:00
George Hotz
dde297fd47 3 minute timeout 2026-01-31 13:08:09 +08:00
George Hotz
84b3d8117f add pytest -nauto to benchmark 2026-01-31 13:06:48 +08:00

View file

@ -16,6 +16,36 @@ on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
# the goal of this test is to replicate a normal person on a laptop running the test
# no process replay, no benchmarks, no CI, just a normal laptop person
# the 3 minute timeout should not be raised
testmacpytest:
name: Mac pytest
runs-on: [self-hosted, macOS]
timeout-minutes: 3
defaults:
run:
shell: bash -e -o pipefail {0}
if: github.repository_owner == 'tinygrad'
steps:
- name: Checkout Code
uses: actions/checkout@v4
# brew install uv
- name: setup python environment
run: |
rm -rf /tmp/tinygrad_pytest_ci
uv venv /tmp/tinygrad_pytest_ci
source /tmp/tinygrad_pytest_ci/bin/activate
uv pip install .[testing]
- name: setup staging db
run: |
echo "CACHEDB=/tmp/pytest-db-ci.db" >> $GITHUB_ENV
rm -f /tmp/pytest-db-ci*
- name: Run pytest -nauto
run: |
source /tmp/tinygrad_pytest_ci/bin/activate
pytest -nauto
testmacbenchmark: testmacbenchmark:
name: Mac Benchmark name: Mac Benchmark
env: env: