Skip to content

[BUILD] Update setuptools version and project URL (#514) #738

[BUILD] Update setuptools version and project URL (#514)

[BUILD] Update setuptools version and project URL (#514) #738

name: Metax-Build-And-Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
metax-build-and-test:
runs-on: flagtree-metax
if: ${{ github.repository == 'FlagTree/flagtree' || github.repository == 'flagos-ai/flagtree' }}
steps:
- name: Setup environment
shell: bash
run: |
source ~/env.sh
env | grep -E '^(http_proxy|https_proxy|all_proxy|no_proxy)=' >> $GITHUB_ENV || true
- name: Smart Checkout
uses: flagos-ai/FlagTree/.github/actions/smart-checkout@main
with:
checkout_version: 'v6'
- name: Check if backend-relevant files changed
id: check_backend
uses: flagos-ai/FlagTree/.github/actions/check-backend-changed@main
with:
backend: metax
- name: FlagTree Build on Metax
if: steps.check_backend.outputs.should_skip != 'true'
shell: bash
run: |
set -x
pip uninstall -y triton
export FLAGTREE_BACKEND=metax
cd python
MAX_JOBS=32 python3 -m pip install . --no-build-isolation
- name: FlagTree Test on Metax
if: steps.check_backend.outputs.should_skip != 'true'
shell: bash
run: |
set -x
source ~/env.sh
python3 -m pytest -s third_party/metax/python/test/unit