Skip to content

Commit

Permalink
Changed file download location to google drive (#127)
Browse files Browse the repository at this point in the history
* Changed file download location to google drive

* Added large file confirmation in request

* Removed git lfs files

* Removed git lfs files

* Added skip file to download

* Added checl repo line
  • Loading branch information
mihaiboldeanu committed Nov 9, 2023
1 parent bd8ec4f commit d8c5dac
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 13 deletions.
2 changes: 0 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
test_data/*.raw filter=lfs diff=lfs merge=lfs -text
*.raw filter=lfs diff=lfs merge=lfs -text
7 changes: 5 additions & 2 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
lfs: true # This ensures that LFS files are checked out

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
Expand All @@ -38,6 +36,11 @@ jobs:
path: ${{ env.TEST_DATA_FOLDER }}
key: test-data-${{ runner.os }}-${{ hashFiles('test_data/*.raw') }}

- name: Download Test Data from Google Drive
run: |
wget --load-cookies /tmp/cookies.txt "https://drive.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://drive.google.com/uc?export=download&id=1ofiSQ4zDwXfHE65tow4_jDIceBYHNW_8' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=1ofiSQ4zDwXfHE65tow4_jDIceBYHNW_8" -O test_data.zip && rm -rf /tmp/cookies.txt
unzip -n test_data.zip -d ${{ env.TEST_DATA_FOLDER }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
.idea/
# Data files
test_data/
*.raw
*.nc
*.zarr
# For MAC stuff
Expand Down
3 changes: 0 additions & 3 deletions test_data/JR161-D20061118-T010645.raw

This file was deleted.

3 changes: 0 additions & 3 deletions test_data/JR179-D20080410-T150637.raw

This file was deleted.

3 changes: 0 additions & 3 deletions test_data/JR230-D20091215-T121917.raw

This file was deleted.

0 comments on commit d8c5dac

Please sign in to comment.