Commit dfc3fafe authored by FrankLeeeee's avatar FrankLeeeee Committed by Frank Lee
Browse files

update unit testing CI rules

parent bbbfe9b2
name: Assign Reviewers for Team
on:
pull_request:
types: [opened]
jobs:
assign_reviewer:
name: Assign Reviewer for PR
runs-on: ubuntu-latest
if: |
github.event.pull_request.draft == false &&
(github.base_ref == 'main' || github.base_ref == 'develop')
&& github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI'
&& toJson(github.event.pull_request.requested_reviewers) == '[]'
steps:
- uses: kentaro-m/auto-assign-action@v1.2.1
with:
configuration-path: '.github/reviewer_list.yml'
name: Pull Request CI and Build
name: Build
on: pull_request
on:
pull_request:
types: [synchronize, labeled]
jobs:
cancel_previous_workflow:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false && (github.base_ref == 'main' || github.base_ref == 'develop') && github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI'
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
with:
access_token: ${{ github.token }}
assign_reviewer:
name: Assign Reviewer for PR
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false && (github.base_ref == 'main' || github.base_ref == 'develop') && github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI' && toJson(github.event.pull_request.requested_reviewers) == '[]'
steps:
- uses: kentaro-m/auto-assign-action@v1.2.1
with:
configuration-path: '.github/reviewer_list.yml'
build:
name: Build and Test Colossal-AI
if: ${{ always() }} && github.event.pull_request.draft == false && (github.base_ref == 'main' || github.base_ref == 'develop') && github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI'
needs: [cancel_previous_workflow, assign_reviewer]
if: |
github.event.pull_request.draft == false &&
(github.base_ref == 'main' || github.base_ref == 'develop') &&
github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI' &&
contains( github.event.pull_request.labels.*.name, 'Run Build and Test')
runs-on: [self-hosted, gpu]
container:
image: nvcr.io/nvidia/pytorch:21.07-py3
......
name: Close inactive issues
on:
schedule:
- cron: "0 0 * * *"
......
name: Compatibility Test
# set to pull_request for testing purpose
# will change to workflow_dispatch when PR to develop
on: pull_request
on: workflow_dispatch
jobs:
build:
name: Test for PyTorch compatibility
# comment for now, will uncomment when PR to develop
# if: (github.base_ref == 'main' || github.base_ref == 'develop') && github.repository == 'hpcaitech/ColossalAI'
runs-on: [self-hosted, gpu]
if: (github.base_ref == 'main' || github.base_ref == 'develop') && github.repository == 'hpcaitech/ColossalAI'
runs-on: [self-hosted, aws]
strategy:
fail-fast: false
matrix:
......@@ -24,7 +21,7 @@ jobs:
container:
image: ${{ matrix.container }}
options: --gpus all --rm --ipc=host -v /data/scratch/cifar-10:/data/scratch/cifar-10
timeout-minutes: 180
timeout-minutes: 120
steps:
- name: Setup Environment
run: |
......
name: Publish to PyPI
on: workflow_dispatch
jobs:
......
name: Synchronize Submodule
on:
workflow_dispatch:
schedule:
......@@ -12,6 +13,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
with:
ref: 'develop'
submodules: true
- name: echo
......
......@@ -218,7 +218,7 @@ setup(
extras_require={
'zero': fetch_requirements('requirements/requirements-zero.txt'),
},
python_requires='>=3.6',
python_requires='>=3.7',
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: Apache Software License',
......
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