mirror of https://github.com/hpcaitech/ColossalAI
[workflow] supported conda package installation in doc test (#3028)
* [workflow] supported conda package installation in doc test * polish code * polish code * polish code * polish code * polish code * polish codepull/3014/head
parent
2cd6ba3098
commit
8fedc8766a
|
@ -44,10 +44,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
python-version: '3.8.14'
|
python-version: '3.8.14'
|
||||||
|
|
||||||
- run: |
|
|
||||||
ls -la
|
|
||||||
ls -la ..
|
|
||||||
|
|
||||||
# we use the versions in the main branch as the guide for versions to display
|
# we use the versions in the main branch as the guide for versions to display
|
||||||
# checkout will give your merged branch
|
# checkout will give your merged branch
|
||||||
# therefore, we need to make the merged branch as the main branch
|
# therefore, we need to make the merged branch as the main branch
|
||||||
|
|
|
@ -54,6 +54,9 @@ jobs:
|
||||||
image: hpcaitech/pytorch-cuda:1.12.0-11.3.0
|
image: hpcaitech/pytorch-cuda:1.12.0-11.3.0
|
||||||
options: --gpus all --rm
|
options: --gpus all --rm
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout ColossalAI-Documentation
|
- name: Checkout ColossalAI-Documentation
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
@ -68,17 +71,21 @@ jobs:
|
||||||
|
|
||||||
- name: Checkout ColossalAI
|
- name: Checkout ColossalAI
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install Doc Test Requirements
|
||||||
|
run: |
|
||||||
|
source activate pytorch
|
||||||
|
conda env update --file docs/conda-doc-test-deps.yml --prune
|
||||||
|
pip install -r docs/requirements-doc-test.txt
|
||||||
|
|
||||||
- name: Install ColossalAI
|
- name: Install ColossalAI
|
||||||
run: |
|
run: |
|
||||||
|
source activate pytorch
|
||||||
pip install -v .
|
pip install -v .
|
||||||
|
|
||||||
- name: Install Doc Test Requirements
|
|
||||||
run: |
|
|
||||||
pip install -r docs/requirements-doc-test.txt
|
|
||||||
|
|
||||||
- name: Test the Doc
|
- name: Test the Doc
|
||||||
run: |
|
run: |
|
||||||
|
source activate pytorch
|
||||||
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
|
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
|
||||||
echo "Testing $file now..."
|
echo "Testing $file now..."
|
||||||
docer test -p $file
|
docer test -p $file
|
||||||
|
|
|
@ -98,7 +98,7 @@ Lastly, if you want to skip some code, you just need to add the following annota
|
||||||
<!--- doc-test-ignore-end -->
|
<!--- doc-test-ignore-end -->
|
||||||
```
|
```
|
||||||
|
|
||||||
If you have any dependency required, please add it to `requriements-doc-test.txt`.
|
If you have any dependency required, please add it to `requriements-doc-test.txt` for pip and `conda-doc-test-deps.yml` for conda.
|
||||||
|
|
||||||
|
|
||||||
### 💉 Auto Documentation
|
### 💉 Auto Documentation
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
dependencies:
|
||||||
|
- cmake
|
Loading…
Reference in New Issue