Commit 0f6c974a authored by muyangli's avatar muyangli
Browse files

rename the workflows

parent 57332240
name: pr_test_5090 name: pr_test_ampere
on: on:
workflow_dispatch: workflow_dispatch:
...@@ -44,7 +44,7 @@ concurrency: ...@@ -44,7 +44,7 @@ concurrency:
jobs: jobs:
check-comment: check-comment:
if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'issue_comment' && github.event.issue.pull_request && !github.event.pull_request.draft) }} if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'issue_comment' && github.event.issue.pull_request && !github.event.pull_request.draft) }}
runs-on: self-hosted runs-on: [ self-hosted, ampere ]
outputs: outputs:
should_run: ${{ steps.check.outputs.should_run }} should_run: ${{ steps.check.outputs.should_run }}
steps: steps:
...@@ -59,7 +59,7 @@ jobs: ...@@ -59,7 +59,7 @@ jobs:
fi fi
set-up-build-env: set-up-build-env:
runs-on: self-hosted runs-on: [ self-hosted, ampere ]
needs: [ check-comment ] needs: [ check-comment ]
if: ${{ github.event_name != 'issue_comment' || needs.check-comment.outputs.should_run == 'true' }} if: ${{ github.event_name != 'issue_comment' || needs.check-comment.outputs.should_run == 'true' }}
...@@ -101,7 +101,7 @@ jobs: ...@@ -101,7 +101,7 @@ jobs:
build: build:
needs: set-up-build-env needs: set-up-build-env
runs-on: self-hosted runs-on: [ self-hosted, ampere ]
timeout-minutes: 30 timeout-minutes: 30
if: ${{ github.event_name != 'issue_comment' || needs.check-comment.outputs.should_run == 'true' }} if: ${{ github.event_name != 'issue_comment' || needs.check-comment.outputs.should_run == 'true' }}
...@@ -117,7 +117,7 @@ jobs: ...@@ -117,7 +117,7 @@ jobs:
test-flux-memory: test-flux-memory:
needs: build needs: build
runs-on: self-hosted runs-on: [ self-hosted, ampere ]
timeout-minutes: 30 timeout-minutes: 30
if: ${{ github.event_name != 'issue_comment' || needs.check-comment.outputs.should_run == 'true' }} if: ${{ github.event_name != 'issue_comment' || needs.check-comment.outputs.should_run == 'true' }}
...@@ -132,7 +132,7 @@ jobs: ...@@ -132,7 +132,7 @@ jobs:
test-flux-other: test-flux-other:
needs: build needs: build
runs-on: self-hosted runs-on: [ self-hosted, ampere ]
timeout-minutes: 150 timeout-minutes: 150
if: ${{ github.event_name != 'issue_comment' || needs.check-comment.outputs.should_run == 'true' }} if: ${{ github.event_name != 'issue_comment' || needs.check-comment.outputs.should_run == 'true' }}
...@@ -147,7 +147,7 @@ jobs: ...@@ -147,7 +147,7 @@ jobs:
test-sana: test-sana:
needs: build needs: build
runs-on: self-hosted runs-on: [ self-hosted, ampere ]
timeout-minutes: 60 timeout-minutes: 60
if: ${{ github.event_name != 'issue_comment' || needs.check-comment.outputs.should_run == 'true' }} if: ${{ github.event_name != 'issue_comment' || needs.check-comment.outputs.should_run == 'true' }}
...@@ -163,7 +163,7 @@ jobs: ...@@ -163,7 +163,7 @@ jobs:
clean-up: clean-up:
if: always() && (github.event_name != 'issue_comment' || needs.check-comment.outputs.should_run == 'true') if: always() && (github.event_name != 'issue_comment' || needs.check-comment.outputs.should_run == 'true')
needs: [ set-up-build-env, test-flux-memory, test-flux-other, test-sana ] needs: [ set-up-build-env, test-flux-memory, test-flux-other, test-sana ]
runs-on: self-hosted runs-on: [ self-hosted, ampere ]
steps: steps:
- name: Clean up - name: Clean up
......
name: pr_test_linux name: pr_test_blackwell
on: on:
workflow_dispatch: workflow_dispatch:
...@@ -44,7 +44,7 @@ concurrency: ...@@ -44,7 +44,7 @@ concurrency:
jobs: jobs:
check-comment: check-comment:
if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'issue_comment' && github.event.issue.pull_request && !github.event.pull_request.draft) }} if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'issue_comment' && github.event.issue.pull_request && !github.event.pull_request.draft) }}
runs-on: self-hosted runs-on: [ self-hosted, blackwell ]
outputs: outputs:
should_run: ${{ steps.check.outputs.should_run }} should_run: ${{ steps.check.outputs.should_run }}
steps: steps:
...@@ -59,7 +59,7 @@ jobs: ...@@ -59,7 +59,7 @@ jobs:
fi fi
set-up-build-env: set-up-build-env:
runs-on: self-hosted runs-on: [ self-hosted, blackwell ]
needs: [ check-comment ] needs: [ check-comment ]
if: ${{ github.event_name != 'issue_comment' || needs.check-comment.outputs.should_run == 'true' }} if: ${{ github.event_name != 'issue_comment' || needs.check-comment.outputs.should_run == 'true' }}
...@@ -95,13 +95,13 @@ jobs: ...@@ -95,13 +95,13 @@ jobs:
which python which python
conda install -c conda-forge gxx=11 gcc=11 conda install -c conda-forge gxx=11 gcc=11
echo "Installing dependencies" echo "Installing dependencies"
pip install torch torchvision torchaudio pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu128
pip install ninja wheel diffusers transformers accelerate sentencepiece protobuf huggingface_hub pip install ninja wheel diffusers transformers accelerate sentencepiece protobuf huggingface_hub
build: build:
needs: set-up-build-env needs: set-up-build-env
runs-on: self-hosted runs-on: [ self-hosted, blackwell ]
timeout-minutes: 30 timeout-minutes: 30
if: ${{ github.event_name != 'issue_comment' || needs.check-comment.outputs.should_run == 'true' }} if: ${{ github.event_name != 'issue_comment' || needs.check-comment.outputs.should_run == 'true' }}
...@@ -117,7 +117,7 @@ jobs: ...@@ -117,7 +117,7 @@ jobs:
test-flux-memory: test-flux-memory:
needs: build needs: build
runs-on: self-hosted runs-on: [ self-hosted, blackwell ]
timeout-minutes: 30 timeout-minutes: 30
if: ${{ github.event_name != 'issue_comment' || needs.check-comment.outputs.should_run == 'true' }} if: ${{ github.event_name != 'issue_comment' || needs.check-comment.outputs.should_run == 'true' }}
...@@ -132,7 +132,7 @@ jobs: ...@@ -132,7 +132,7 @@ jobs:
test-flux-other: test-flux-other:
needs: build needs: build
runs-on: self-hosted runs-on: [ self-hosted, blackwell ]
timeout-minutes: 150 timeout-minutes: 150
if: ${{ github.event_name != 'issue_comment' || needs.check-comment.outputs.should_run == 'true' }} if: ${{ github.event_name != 'issue_comment' || needs.check-comment.outputs.should_run == 'true' }}
...@@ -147,7 +147,7 @@ jobs: ...@@ -147,7 +147,7 @@ jobs:
test-sana: test-sana:
needs: build needs: build
runs-on: self-hosted runs-on: [ self-hosted, blackwell ]
timeout-minutes: 60 timeout-minutes: 60
if: ${{ github.event_name != 'issue_comment' || needs.check-comment.outputs.should_run == 'true' }} if: ${{ github.event_name != 'issue_comment' || needs.check-comment.outputs.should_run == 'true' }}
...@@ -163,7 +163,7 @@ jobs: ...@@ -163,7 +163,7 @@ jobs:
clean-up: clean-up:
if: always() && (github.event_name != 'issue_comment' || needs.check-comment.outputs.should_run == 'true') if: always() && (github.event_name != 'issue_comment' || needs.check-comment.outputs.should_run == 'true')
needs: [ set-up-build-env, test-flux-memory, test-flux-other, test-sana ] needs: [ set-up-build-env, test-flux-memory, test-flux-other, test-sana ]
runs-on: self-hosted runs-on: [ self-hosted, blackwell ]
steps: steps:
- name: Clean up - name: Clean up
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment