From b7d8d05c070ebf9442aa12751ecaf6b22525848f Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Mon, 8 Aug 2022 01:11:34 +0800 Subject: [PATCH] chore(workflows): reorder steps --- .github/workflows/lint.yml | 14 ++++++-------- .github/workflows/tests.yml | 2 +- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f262f5c63..274133deb 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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: | @@ -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 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 65e5b0cce..5692839a4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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: |