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: |