diff --git a/.github/actions/test/action.yml b/.github/actions/test/action.yml index 24f6bb37..c0704d18 100644 --- a/.github/actions/test/action.yml +++ b/.github/actions/test/action.yml @@ -17,8 +17,7 @@ runs: with: venv: ${{ inputs.venv }} name: compressed - #extra: "[dev,accelerate]" - extra: "[dev]" + extra: "${EXTRA}" - name: test id: test diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 6d4d4d84..36d2782c 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -56,12 +56,12 @@ jobs: testmo_run_id: ${{ needs.BUILD.outputs.testmo_run_id }} secrets: inherit - UPLOAD: - needs: TEST - uses: ./.github/workflows/upload.yml - with: - label: k8s-util - timeout: 40 - run_id: ${{ github.run_id }} - push_to_pypi: ${{ inputs.push_to_pypi }} - secrets: inherit +# UPLOAD: +# needs: TEST +# uses: ./.github/workflows/upload.yml +# with: +# label: k8s-util +# timeout: 40 +# run_id: ${{ github.run_id }} +# push_to_pypi: ${{ inputs.push_to_pypi }} +# secrets: inherit diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 07b2ee1f..0fbabeea 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -100,6 +100,14 @@ jobs: name: ${{ inputs.whl }} path: ${{ inputs.whl }} + - name: dependency + run: | + if [[ ${{ inputs.whl }} =~ nightly ]]; then + echo 'EXTRA="[dev,accelerate]"' >> $GITHUB_ENV + else + echo 'EXTRA="[dev]"' >> $GITHUB_ENV + fi + - name: run tests id: test uses: ./.github/actions/test/