Skip to content

Commit

Permalink
chore(workflows): reorder steps
Browse files Browse the repository at this point in the history
  • Loading branch information
XuehaiPan committed Aug 7, 2022
1 parent 83b1c5f commit b7d8d05
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,9 @@ jobs:
run: |
python -m pip install --upgrade pip setuptools
- name: Install dependencies
run: |
python -m pip install --extra-index-url "${TORCH_INDEX_URL}" \
-r tests/requirements.txt
python -m pip install --extra-index-url "${TORCH_INDEX_URL}" \
-r docs/requirements.txt
- name: Install TorchOpt
run: |
python -m pip install -e .
python -m pip install -vvv -e '.[lint]'
- name: pre-commit
run: |
Expand Down Expand Up @@ -97,6 +90,11 @@ jobs:
run: |
make mypy
- name: Install dependencies
run: |
python -m pip install --extra-index-url "${TORCH_INDEX_URL}" \
-r docs/requirements.txt
- name: docstyle
run: |
make docstyle
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
- name: Install TorchOpt
run: |
python -m pip install -e .
python -m pip install -vvv -e .
- name: Test with pytest
run: |
Expand Down

0 comments on commit b7d8d05

Please # to comment.