Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ColossalAI
Commits
b0c29d1b
Unverified
Commit
b0c29d1b
authored
Feb 06, 2023
by
Frank Lee
Committed by
GitHub
Feb 06, 2023
Browse files
[workflow] refactored compatibility test workflow for maintenability (#2560)
parent
76edb04b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
73 additions
and
6 deletions
+73
-6
.github/workflows/compatiblity_test_on_dispatch.yml
.github/workflows/compatiblity_test_on_dispatch.yml
+1
-1
.github/workflows/compatiblity_test_on_pr.yml
.github/workflows/compatiblity_test_on_pr.yml
+71
-0
.github/workflows/compatiblity_test_on_schedule.yml
.github/workflows/compatiblity_test_on_schedule.yml
+1
-5
No files found.
.github/workflows/
dispatch_
compatib
i
lity_test.yml
→
.github/workflows/compatiblity_test
_on_dispatch
.yml
View file @
b0c29d1b
name
:
Dispatch
Compatibility Test
name
:
Compatibility Test
on Dispatch
on
:
workflow_dispatch
:
...
...
.github/workflows/compatiblity_test_on_pr.yml
0 → 100644
View file @
b0c29d1b
name
:
Compatibility Test on PR
on
:
pull_request
:
paths
:
-
'
version.txt'
-
'
.compatibility'
jobs
:
matrix_preparation
:
name
:
Prepare Container List
runs-on
:
ubuntu-latest
outputs
:
matrix
:
${{ steps.set-matrix.outputs.matrix }}
steps
:
-
uses
:
actions/checkout@v3
-
id
:
set-matrix
run
:
|
IFS=','
DOCKER_IMAGE=()
while read tag; do
DOCKER_IMAGE+=("\"hpcaitech/pytorch-cuda:${tag}\"")
done <.compatibility
container=$( IFS=',' ; echo "${DOCKER_IMAGE[*]}" )
container="[${container}]"
echo "$container"
echo "::set-output name=matrix::{\"container\":$(echo "$container")}"
build
:
name
:
Test for PyTorch Compatibility
needs
:
matrix_preparation
if
:
github.repository == 'hpcaitech/ColossalAI'
runs-on
:
[
self-hosted
,
gpu
]
strategy
:
fail-fast
:
false
matrix
:
${{fromJson(needs.matrix_preparation.outputs.matrix)}}
container
:
image
:
${{ matrix.container }}
options
:
--gpus all --rm -v /data/scratch/cifar-10:/data/scratch/cifar-10
timeout-minutes
:
120
steps
:
-
name
:
Install dependencies
run
:
|
pip install -U pip setuptools wheel --user
-
uses
:
actions/checkout@v2
with
:
repository
:
hpcaitech/TensorNVMe
ssh-key
:
${{ secrets.SSH_KEY_FOR_CI }}
path
:
TensorNVMe
-
name
:
Install tensornvme
run
:
|
cd TensorNVMe
conda install cmake
pip install -r requirements.txt
pip install -v .
-
uses
:
actions/checkout@v2
with
:
ssh-key
:
${{ secrets.SSH_KEY_FOR_CI }}
-
name
:
Install Colossal-AI
run
:
|
pip install -v --no-cache-dir .
pip install -r requirements/requirements-test.txt
-
name
:
Unit Testing
run
:
|
PYTHONPATH=$PWD pytest tests
env
:
DATA
:
/data/scratch/cifar-10
NCCL_SHM_DISABLE
:
1
LD_LIBRARY_PATH
:
/github/home/.tensornvme/lib:/usr/local/nvidia/lib:/usr/local/nvidia/lib64
.github/workflows/
auto_
compatib
i
lity_test.yml
→
.github/workflows/compatiblity_test
_on_schedule
.yml
View file @
b0c29d1b
name
:
Compatibility Test
name
:
Compatibility Test
on Schedule
on
:
pull_request
:
paths
:
-
'
version.txt'
-
'
.compatibility'
# run at 03:00 of every Sunday(singapore time) so here is UTC time Saturday 16:00
schedule
:
-
cron
:
'
0
19
*
*
6'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment