Skip to content

Commit

Permalink
Remove S3 integration tests
Browse files Browse the repository at this point in the history
Reviewed By: JKSenthil

Differential Revision: D57593731
  • Loading branch information
diego-urgell authored and facebook-github-bot committed May 20, 2024
1 parent ef2b6d6 commit 6069656
Showing 1 changed file with 45 additions and 43 deletions.
88 changes: 45 additions & 43 deletions .github/workflows/run_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,49 +92,51 @@ jobs:
- name: Upload coverage to codecov
uses: codecov/codecov-action@v2

s3_integration_test:
if: github.event.pull_request.head.repo.fork == false
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
# These permissions are needed to interact with GitHub's OIDC Token endpoint
permissions:
id-token: write
contents: read
steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
aws-region: us-east-1
- name: Set environment variables
run: echo "TORCHSNAPSHOT_ENABLE_AWS_TEST=1" >> $GITHUB_ENV
- name: Check out repo
uses: actions/checkout@v2
- name: Setup conda env
uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
activate-environment: test
python-version: ${{ matrix.python-version }}
- name: Install dependencies
shell: bash -l {0}
run: |
set -eux
conda activate test
conda install pytorch cpuonly -c pytorch-nightly
pip install -r requirements.txt
pip install -r dev-requirements.txt
pip install --no-build-isolation -e ".[dev]"
- name: Run unit tests with coverage
shell: bash -l {0}
run: |
set -eux
conda activate test
pytest --timeout=300 --cov=. --cov-report xml -vv -rA -m s3_integration_test tests
- name: Upload coverage to codecov
uses: codecov/codecov-action@v2
# Disabled to unblock TNT OSS release.
#
# s3_integration_test:
# if: github.event.pull_request.head.repo.fork == false
# runs-on: ubuntu-latest
# strategy:
# matrix:
# python-version: [3.8]
# # These permissions are needed to interact with GitHub's OIDC Token endpoint
# permissions:
# id-token: write
# contents: read
# steps:
# - name: Configure AWS Credentials
# uses: aws-actions/configure-aws-credentials@v1
# with:
# role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
# aws-region: us-east-1
# - name: Set environment variables
# run: echo "TORCHSNAPSHOT_ENABLE_AWS_TEST=1" >> $GITHUB_ENV
# - name: Check out repo
# uses: actions/checkout@v2
# - name: Setup conda env
# uses: conda-incubator/setup-miniconda@v2
# with:
# miniconda-version: "latest"
# activate-environment: test
# python-version: ${{ matrix.python-version }}
# - name: Install dependencies
# shell: bash -l {0}
# run: |
# set -eux
# conda activate test
# conda install pytorch cpuonly -c pytorch-nightly
# pip install -r requirements.txt
# pip install -r dev-requirements.txt
# pip install --no-build-isolation -e ".[dev]"
# - name: Run unit tests with coverage
# shell: bash -l {0}
# run: |
# set -eux
# conda activate test
# pytest --timeout=300 --cov=. --cov-report xml -vv -rA -m s3_integration_test tests
# - name: Upload coverage to codecov
# uses: codecov/codecov-action@v2

gcs_integration_tests:
if: github.event.pull_request.head.repo.fork == false
Expand Down

0 comments on commit 6069656

Please sign in to comment.