mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-16 01:49:05 +08:00
don't test when doing release (#2734)
Some checks failed
Nightly Build / build_linux_release (3.10) (push) Has been cancelled
Nightly Build / build_linux_release (3.14) (push) Has been cancelled
Nightly Build / build_linux_with_tests (3.10) (push) Has been cancelled
Nightly Build / build_linux_with_tests (3.11) (push) Has been cancelled
Nightly Build / build_linux_with_tests (3.12) (push) Has been cancelled
Nightly Build / build_linux_with_tests (3.13) (push) Has been cancelled
Nightly Build / build_linux_with_tests (3.14) (push) Has been cancelled
Nightly Build / build_mac_release (3.10) (push) Has been cancelled
Nightly Build / build_mac_release (3.13) (push) Has been cancelled
Nightly Build / build_cuda_with_tests (push) Has been cancelled
Nightly Build / build_cuda_release (push) Has been cancelled
Nightly Build / Linux Fedora CPP Build (aarch64) (push) Has been cancelled
Nightly Build / Linux Fedora CPP Build (x86_64) (push) Has been cancelled
Some checks failed
Nightly Build / build_linux_release (3.10) (push) Has been cancelled
Nightly Build / build_linux_release (3.14) (push) Has been cancelled
Nightly Build / build_linux_with_tests (3.10) (push) Has been cancelled
Nightly Build / build_linux_with_tests (3.11) (push) Has been cancelled
Nightly Build / build_linux_with_tests (3.12) (push) Has been cancelled
Nightly Build / build_linux_with_tests (3.13) (push) Has been cancelled
Nightly Build / build_linux_with_tests (3.14) (push) Has been cancelled
Nightly Build / build_mac_release (3.10) (push) Has been cancelled
Nightly Build / build_mac_release (3.13) (push) Has been cancelled
Nightly Build / build_cuda_with_tests (push) Has been cancelled
Nightly Build / build_cuda_release (push) Has been cancelled
Nightly Build / Linux Fedora CPP Build (aarch64) (push) Has been cancelled
Nightly Build / Linux Fedora CPP Build (x86_64) (push) Has been cancelled
This commit is contained in:
23
.github/actions/build-macos/action.yml
vendored
23
.github/actions/build-macos/action.yml
vendored
@@ -14,10 +14,6 @@ inputs:
|
|||||||
description: 'Whether to run tests'
|
description: 'Whether to run tests'
|
||||||
required: false
|
required: false
|
||||||
default: 'true'
|
default: 'true'
|
||||||
build-jit:
|
|
||||||
description: 'Whether to build with JIT'
|
|
||||||
required: false
|
|
||||||
default: 'true'
|
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
@@ -28,9 +24,8 @@ runs:
|
|||||||
DEBUG: 1
|
DEBUG: 1
|
||||||
DEV_RELEASE: 1
|
DEV_RELEASE: 1
|
||||||
run: |
|
run: |
|
||||||
uv pip install --upgrade pip cmake setuptools
|
uv pip install --upgrade pip
|
||||||
uv pip install nanobind==2.4.0 \
|
uv pip install cmake setuptools nanobind==2.4.0
|
||||||
numpy torch tensorflow unittest-xml-reporting
|
|
||||||
uv pip install -e . -v
|
uv pip install -e . -v
|
||||||
|
|
||||||
- name: Generate package stubs
|
- name: Generate package stubs
|
||||||
@@ -39,6 +34,12 @@ runs:
|
|||||||
uv pip install typing_extensions
|
uv pip install typing_extensions
|
||||||
uv run --no-project setup.py generate_stubs
|
uv run --no-project setup.py generate_stubs
|
||||||
|
|
||||||
|
- name: Install tests dependencies
|
||||||
|
if: inputs.run-tests == 'true'
|
||||||
|
shell: sh
|
||||||
|
run: |
|
||||||
|
uv pip install numpy torch tensorflow unittest-xml-reporting
|
||||||
|
|
||||||
- name: Run Python tests
|
- name: Run Python tests
|
||||||
if: inputs.run-tests == 'true'
|
if: inputs.run-tests == 'true'
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -61,7 +62,7 @@ runs:
|
|||||||
uv run --no-project test.py
|
uv run --no-project test.py
|
||||||
|
|
||||||
- name: Build CPP only
|
- name: Build CPP only
|
||||||
if: inputs.build-type == 'debug'
|
if: inputs.run-tests == 'true'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
@@ -70,7 +71,7 @@ runs:
|
|||||||
make -j $(sysctl -n hw.ncpu)
|
make -j $(sysctl -n hw.ncpu)
|
||||||
|
|
||||||
- name: Run CPP tests
|
- name: Run CPP tests
|
||||||
if: ${{ inputs.build-type == 'debug' && inputs.run-tests == 'true' }}
|
if: inputs.run-tests == 'true'
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
DEVICE: gpu
|
DEVICE: gpu
|
||||||
@@ -79,7 +80,7 @@ runs:
|
|||||||
run: ./build/tests/tests
|
run: ./build/tests/tests
|
||||||
|
|
||||||
- name: Build small binary with JIT
|
- name: Build small binary with JIT
|
||||||
if: inputs.build-jit == 'true'
|
if: inputs.run-tests == 'true'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
@@ -93,7 +94,7 @@ runs:
|
|||||||
make -j $(sysctl -n hw.ncpu)
|
make -j $(sysctl -n hw.ncpu)
|
||||||
|
|
||||||
- name: Run Python tests with JIT
|
- name: Run Python tests with JIT
|
||||||
if: ${{ inputs.build-jit == 'true' && inputs.run-tests == 'true' }}
|
if: inputs.run-tests == 'true'
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
LOW_MEMORY: 1
|
LOW_MEMORY: 1
|
||||||
|
|||||||
2
.github/workflows/nightly.yml
vendored
2
.github/workflows/nightly.yml
vendored
@@ -53,7 +53,7 @@ jobs:
|
|||||||
if: github.repository == 'ml-explore/mlx'
|
if: github.repository == 'ml-explore/mlx'
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.10", "3.14"]
|
python-version: ["3.10", "3.13"]
|
||||||
env:
|
env:
|
||||||
MACOSX_DEPLOYMENT_TARGET: "15.0"
|
MACOSX_DEPLOYMENT_TARGET: "15.0"
|
||||||
runs-on: [self-hosted, macos]
|
runs-on: [self-hosted, macos]
|
||||||
|
|||||||
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
@@ -85,6 +85,7 @@ jobs:
|
|||||||
- uses: ./.github/actions/build-macos
|
- uses: ./.github/actions/build-macos
|
||||||
with:
|
with:
|
||||||
build-type: release
|
build-type: release
|
||||||
|
run-tests: false
|
||||||
- name: Upload MLX artifacts
|
- name: Upload MLX artifacts
|
||||||
uses: actions/upload-artifact@v5
|
uses: actions/upload-artifact@v5
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user