Skip to content

Commit bc27a76

Browse files
committed
Add back all tests.
1 parent 826534d commit bc27a76

File tree

1 file changed

+25
-26
lines changed

1 file changed

+25
-26
lines changed

.github/workflows/code_test_and_deploy.yml

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -68,34 +68,33 @@ jobs:
6868
# run SSH tests only on Linux because Windows and macOS
6969
# are already run within a virtual container and so cannot
7070
# run Linux containers because nested containerisation is disabled.
71-
# - name: Test SSH (Linux only)
72-
# if: runner.os == 'Linux'
73-
# run: |
74-
# sudo service mysql stop # free up port 3306 for ssh tests
75-
# pytest tests/tests_transfers/ssh
76-
#
77-
# - name: Test Google Drive
78-
# env:
79-
# GDRIVE_CLIENT_ID: ${{ secrets.GDRIVE_CLIENT_ID }}
80-
# GDRIVE_CLIENT_SECRET: ${{ secrets.GDRIVE_CLIENT_SECRET }}
81-
# GDRIVE_ROOT_FOLDER_ID: ${{ secrets.GDRIVE_ROOT_FOLDER_ID }}
82-
# GDRIVE_CONFIG_TOKEN: ${{ secrets.GDRIVE_CONFIG_TOKEN }}
83-
# run: |
84-
# pytest tests/tests_transfers/gdrive
85-
#
86-
# - name: Test AWS
87-
# env:
88-
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
89-
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
90-
# AWS_REGION: ${{ secrets.AWS_REGION }}
91-
# AWS_BUCKET_NAME: ${{ secrets.AWS_BUCKET_NAME }}
92-
# run: |
93-
# pytest tests/tests_transfers/aws
94-
#
71+
- name: Test SSH (Linux only)
72+
if: runner.os == 'Linux'
73+
run: |
74+
sudo service mysql stop # free up port 3306 for ssh tests
75+
pytest tests/tests_transfers/ssh
76+
77+
- name: Test Google Drive
78+
env:
79+
GDRIVE_CLIENT_ID: ${{ secrets.GDRIVE_CLIENT_ID }}
80+
GDRIVE_CLIENT_SECRET: ${{ secrets.GDRIVE_CLIENT_SECRET }}
81+
GDRIVE_ROOT_FOLDER_ID: ${{ secrets.GDRIVE_ROOT_FOLDER_ID }}
82+
GDRIVE_CONFIG_TOKEN: ${{ secrets.GDRIVE_CONFIG_TOKEN }}
83+
run: |
84+
pytest tests/tests_transfers/gdrive
85+
86+
- name: Test AWS
87+
env:
88+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
89+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
90+
AWS_REGION: ${{ secrets.AWS_REGION }}
91+
AWS_BUCKET_NAME: ${{ secrets.AWS_BUCKET_NAME }}
92+
run: |
93+
pytest tests/tests_transfers/aws
94+
9595
- name: All Other Tests
9696
run: |
97-
pytest -k test_transfer
98-
# --ignore=tests/tests_transfers/ssh --ignore=tests/tests_transfers/gdrive --ignore=tests/tests_transfers/aws
97+
pytest --ignore=tests/tests_transfers/ssh --ignore=tests/tests_transfers/gdrive --ignore=tests/tests_transfers/aws
9998
10099
101100
build_sdist_wheels:

0 commit comments

Comments
 (0)