Skip to content

Commit e8a1fc0

Browse files
diego-urgellfacebook-github-bot
authored andcommitted
Remove S3 integration tests (#177)
Summary: Pull Request resolved: #177 Reviewed By: JKSenthil Differential Revision: D57593731 fbshipit-source-id: 55a7611a5f5de3c61c807b2dce2290e2d7916931
1 parent ef2b6d6 commit e8a1fc0

File tree

1 file changed

+45
-43
lines changed

1 file changed

+45
-43
lines changed

.github/workflows/run_tests.yaml

Lines changed: 45 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -92,49 +92,51 @@ jobs:
9292
- name: Upload coverage to codecov
9393
uses: codecov/codecov-action@v2
9494

95-
s3_integration_test:
96-
if: github.event.pull_request.head.repo.fork == false
97-
runs-on: ubuntu-latest
98-
strategy:
99-
matrix:
100-
python-version: [3.8]
101-
# These permissions are needed to interact with GitHub's OIDC Token endpoint
102-
permissions:
103-
id-token: write
104-
contents: read
105-
steps:
106-
- name: Configure AWS Credentials
107-
uses: aws-actions/configure-aws-credentials@v1
108-
with:
109-
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
110-
aws-region: us-east-1
111-
- name: Set environment variables
112-
run: echo "TORCHSNAPSHOT_ENABLE_AWS_TEST=1" >> $GITHUB_ENV
113-
- name: Check out repo
114-
uses: actions/checkout@v2
115-
- name: Setup conda env
116-
uses: conda-incubator/setup-miniconda@v2
117-
with:
118-
miniconda-version: "latest"
119-
activate-environment: test
120-
python-version: ${{ matrix.python-version }}
121-
- name: Install dependencies
122-
shell: bash -l {0}
123-
run: |
124-
set -eux
125-
conda activate test
126-
conda install pytorch cpuonly -c pytorch-nightly
127-
pip install -r requirements.txt
128-
pip install -r dev-requirements.txt
129-
pip install --no-build-isolation -e ".[dev]"
130-
- name: Run unit tests with coverage
131-
shell: bash -l {0}
132-
run: |
133-
set -eux
134-
conda activate test
135-
pytest --timeout=300 --cov=. --cov-report xml -vv -rA -m s3_integration_test tests
136-
- name: Upload coverage to codecov
137-
uses: codecov/codecov-action@v2
95+
# Disabled to unblock TNT OSS release.
96+
#
97+
# s3_integration_test:
98+
# if: github.event.pull_request.head.repo.fork == false
99+
# runs-on: ubuntu-latest
100+
# strategy:
101+
# matrix:
102+
# python-version: [3.8]
103+
# # These permissions are needed to interact with GitHub's OIDC Token endpoint
104+
# permissions:
105+
# id-token: write
106+
# contents: read
107+
# steps:
108+
# - name: Configure AWS Credentials
109+
# uses: aws-actions/configure-aws-credentials@v1
110+
# with:
111+
# role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
112+
# aws-region: us-east-1
113+
# - name: Set environment variables
114+
# run: echo "TORCHSNAPSHOT_ENABLE_AWS_TEST=1" >> $GITHUB_ENV
115+
# - name: Check out repo
116+
# uses: actions/checkout@v2
117+
# - name: Setup conda env
118+
# uses: conda-incubator/setup-miniconda@v2
119+
# with:
120+
# miniconda-version: "latest"
121+
# activate-environment: test
122+
# python-version: ${{ matrix.python-version }}
123+
# - name: Install dependencies
124+
# shell: bash -l {0}
125+
# run: |
126+
# set -eux
127+
# conda activate test
128+
# conda install pytorch cpuonly -c pytorch-nightly
129+
# pip install -r requirements.txt
130+
# pip install -r dev-requirements.txt
131+
# pip install --no-build-isolation -e ".[dev]"
132+
# - name: Run unit tests with coverage
133+
# shell: bash -l {0}
134+
# run: |
135+
# set -eux
136+
# conda activate test
137+
# pytest --timeout=300 --cov=. --cov-report xml -vv -rA -m s3_integration_test tests
138+
# - name: Upload coverage to codecov
139+
# uses: codecov/codecov-action@v2
138140

139141
gcs_integration_tests:
140142
if: github.event.pull_request.head.repo.fork == false

0 commit comments

Comments
 (0)