Skip to content

Commit

Permalink
Disable heavy tests for Python2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Mar 25, 2023
1 parent 48ff49d commit f196a1c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,13 @@ jobs:
done < tests/data/file_ids_large.csv
test $success = 1
rm -rf $output
if: matrix.python-version != '2.7'

- name: Download and extract
run: |
gdown https://github.com/wkentaro/gdown/archive/refs/tags/v4.0.0.tar.gz -O - --quiet | tar zxf -
test -d gdown-4.0.0
if: matrix.python-version != '2.7'

- name: Download folder from Google Drive
run: |
Expand All @@ -99,11 +101,13 @@ jobs:
done < tests/data/folder_ids.csv
test $success = 1
rm -rf $output
if: matrix.python-version != '2.7'

- name: Try to download a folder with a file count more than the limit from Google Drive, without remaining ok
run: |
output=/tmp/folder-limit/
gdown https://drive.google.com/drive/folders/1gd3xLkmjT8IckN6WtMbyFZvLR4exRIkn -O $output --quiet --folder && exit 1 || exit 0
if: matrix.python-version != '2.7'

- name: Download docs from Google Drive
run: |
Expand All @@ -113,6 +117,7 @@ jobs:
gdown $file_id -O $output --quiet --format pdf
actual_hash=$(md5sum $output | awk '{print $1}')
test $actual_hash = $md5
if: matrix.python-version != '2.7'

- name: Download spreadsheets from Google Drive
run: |
Expand All @@ -122,6 +127,7 @@ jobs:
gdown $file_id -O $output --quiet --format pdf
actual_hash=$(md5sum $output | awk '{print $1}')
test $actual_hash = $md5
if: matrix.python-version != '2.7'

- name: Download slides from Google Drive
run: |
Expand All @@ -140,6 +146,7 @@ jobs:
# actual_hash=$(find $output -type f -exec md5sum {} \; | awk '{print $1}' | sort | md5sum | awk '{print $1}')
# test $actual_hash = b0e45acb8d9c7d9200ce8fe38896c790
# rm -rf $output
# if: matrix.python-version != '2.7'

- name: Install from dist
run: |
Expand Down

0 comments on commit f196a1c

Please sign in to comment.