mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-06-01 20:05:27 +00:00
[worfklow] added coverage test (#2399)
* [worfklow] added coverage test * polish code * polish code * polish code * polish code * polish code * polish code * polish code * polish code
This commit is contained in:
parent
ea13a201bb
commit
53bb8682a2
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@ -20,6 +20,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
- name: Find the changed files
|
- name: Find the changed files
|
||||||
id: find-changed-files
|
id: find-changed-files
|
||||||
uses: tj-actions/changed-files@v35
|
uses: tj-actions/changed-files@v35
|
||||||
@ -75,7 +76,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Unit Testing
|
- name: Unit Testing
|
||||||
run: |
|
run: |
|
||||||
PYTHONPATH=$PWD pytest tests
|
PYTHONPATH=$PWD pytest --cov=. --cov-report lcov tests
|
||||||
env:
|
env:
|
||||||
DATA: /data/scratch/cifar-10
|
DATA: /data/scratch/cifar-10
|
||||||
NCCL_SHM_DISABLE: 1
|
NCCL_SHM_DISABLE: 1
|
||||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -151,3 +151,6 @@ colossalai/version.py
|
|||||||
|
|
||||||
# ignore python interface defition file
|
# ignore python interface defition file
|
||||||
.pyi
|
.pyi
|
||||||
|
|
||||||
|
# ignore coverage test file
|
||||||
|
converage.lcov
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
fbgemm-gpu==0.2.0
|
fbgemm-gpu==0.2.0
|
||||||
pytest
|
pytest
|
||||||
|
pytest-cov
|
||||||
torchvision
|
torchvision
|
||||||
transformers
|
transformers
|
||||||
timm
|
timm
|
||||||
|
Loading…
Reference in New Issue
Block a user