Skip to content

Commit

Permalink
only test upload step in one location for now
Browse files Browse the repository at this point in the history
  • Loading branch information
ZainRizvi committed May 3, 2023
1 parent 5a9d8f8 commit d68e8d7
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/_binary-build-linux.yml
Expand Up @@ -210,11 +210,11 @@ jobs:
# Ensure the working directory gets chowned back to the current user
docker run --rm -v "${RUNNER_TEMP}/artifacts:/v" -w /v "${ALPINE_IMAGE}" chown -R "$(id -u):$(id -g)" .
- name: Upload pytest cache
uses: ./.github/actions/pytest-cache-upload
if: always() && steps.test.conclusion && steps.test.conclusion != 'skipped'
with:
cache_dir: "${GITHUB_WORKSPACE}/pytorch/.pytest_cache"
# - name: Upload pytest cache
# uses: ./.github/actions/pytest-cache-upload
# if: always() && steps.test.conclusion && steps.test.conclusion != 'skipped'
# with:
# cache_dir: "${GITHUB_WORKSPACE}/pytorch/.pytest_cache"

- uses: actions/upload-artifact@v3
with:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/_mac-test.yml
Expand Up @@ -200,12 +200,12 @@ jobs:
${CONDA_RUN} .ci/pytorch/macos-test.sh
- name: Upload pytest cache
uses: ./.github/actions/pytest-cache-upload
if: always() && steps.test.conclusion && steps.test.conclusion != 'skipped'
with:
cache_dir: ${GITHUB_WORKSPACE}/.pytest_cache
shard: ${{ matrix.shard }}
# - name: Upload pytest cache
# uses: ./.github/actions/pytest-cache-upload
# if: always() && steps.test.conclusion && steps.test.conclusion != 'skipped'
# with:
# cache_dir: ${GITHUB_WORKSPACE}/.pytest_cache
# shard: ${{ matrix.shard }}

- name: Print remaining test logs
shell: bash
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/_rocm-test.yml
Expand Up @@ -193,12 +193,12 @@ jobs:
# jenkins user does not have write permission to mounted workspace; work-around by copying within container to jenkins home
docker exec -t "${container_name}" sh -c "cd .. && cp -R workspace pytorch && cd pytorch && pip install dist/*.whl && ${TEST_COMMAND}"
- name: Upload pytest cache
uses: ./.github/actions/pytest-cache-upload
if: always() && steps.test.conclusion && steps.test.conclusion != 'skipped'
with:
cache_dir: ${GITHUB_WORKSPACE}/.pytest_cache
shard: ${{ matrix.shard }}
# - name: Upload pytest cache
# uses: ./.github/actions/pytest-cache-upload
# if: always() && steps.test.conclusion && steps.test.conclusion != 'skipped'
# with:
# cache_dir: ${GITHUB_WORKSPACE}/.pytest_cache
# shard: ${{ matrix.shard }}

- name: Save test results
if: always()
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/_win-test.yml
Expand Up @@ -186,12 +186,12 @@ jobs:
.ci/pytorch/win-test.sh
- name: Upload pytest cache
uses: ./.github/actions/pytest-cache-upload
if: always() && steps.test.conclusion && steps.test.conclusion != 'skipped'
with:
cache_dir: ${GITHUB_WORKSPACE}/.pytest_cache
shard: ${{ matrix.shard }}
# - name: Upload pytest cache
# uses: ./.github/actions/pytest-cache-upload
# if: always() && steps.test.conclusion && steps.test.conclusion != 'skipped'
# with:
# cache_dir: ${GITHUB_WORKSPACE}/.pytest_cache
# shard: ${{ matrix.shard }}

- name: Print remaining test logs
shell: bash
Expand Down

0 comments on commit d68e8d7

Please sign in to comment.