switch to github actions (#1394)
Some checks failed
Test / check_lint (push) Has been cancelled

This commit is contained in:
Awni Hannun
2025-11-20 09:57:43 -08:00
committed by GitHub
parent 21a4d4cdab
commit 7ddca42f4d
2 changed files with 25 additions and 40 deletions

25
.github/workflows/pull_request.yml vendored Normal file
View File

@@ -0,0 +1,25 @@
name: Test
on:
push:
branches: ["main"]
pull_request:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/head/main' }}
jobs:
check_lint:
if: github.repository == 'ml-explore/mlx-examples'
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: "3.10"
- uses: pre-commit/action@v3.0.1