mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-01 09:07:51 +00:00
[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 code
This commit is contained in:
4
.github/workflows/doc_check_on_pr.yml
vendored
4
.github/workflows/doc_check_on_pr.yml
vendored
@@ -44,10 +44,6 @@ jobs:
|
||||
with:
|
||||
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
|
||||
# checkout will give your merged branch
|
||||
# therefore, we need to make the merged branch as the main branch
|
||||
|
15
.github/workflows/doc_test_on_pr.yml
vendored
15
.github/workflows/doc_test_on_pr.yml
vendored
@@ -54,6 +54,9 @@ jobs:
|
||||
image: hpcaitech/pytorch-cuda:1.12.0-11.3.0
|
||||
options: --gpus all --rm
|
||||
timeout-minutes: 20
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
steps:
|
||||
- name: Checkout ColossalAI-Documentation
|
||||
uses: actions/checkout@v2
|
||||
@@ -68,17 +71,21 @@ jobs:
|
||||
|
||||
- name: Checkout ColossalAI
|
||||
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
|
||||
run: |
|
||||
source activate pytorch
|
||||
pip install -v .
|
||||
|
||||
- name: Install Doc Test Requirements
|
||||
run: |
|
||||
pip install -r docs/requirements-doc-test.txt
|
||||
|
||||
- name: Test the Doc
|
||||
run: |
|
||||
source activate pytorch
|
||||
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
|
||||
echo "Testing $file now..."
|
||||
docer test -p $file
|
||||
|
Reference in New Issue
Block a user