Skip to content

Commit

Permalink
Updated the automated test to get files from git LFS
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaiboldeanu committed Oct 30, 2023
1 parent f9203e8 commit 22a8fc4
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,28 @@ jobs:

env:
TEST_DATA_FOLDER: ${{ github.workspace }}/test_data
FTP_MAIN: ftp.bas.ac.uk
FTP_PARTIAL_PATH: rapidkrill/ek60/

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
with:
python-version: ${{ matrix.python-version }}

- name: Cache test data
uses: actions/cache@v3
with:
path: ${{ env.TEST_DATA_FOLDER }}
key: test-data-${{ runner.os }}-${{ hashFiles('test_data/*.raw') }}

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Download FTP Data with wget
run: |
mkdir -p ${{ env.TEST_DATA_FOLDER }}
wget -P ${{ env.TEST_DATA_FOLDER }} ftp://${{ env.FTP_MAIN }}/${{ env.FTP_PARTIAL_PATH }}JR161-D20061118-T010645.raw
wget -P ${{ env.TEST_DATA_FOLDER }} ftp://${{ env.FTP_MAIN }}/${{ env.FTP_PARTIAL_PATH }}JR179-D20080410-T150637.raw
wget -P ${{ env.TEST_DATA_FOLDER }} ftp://${{ env.FTP_MAIN }}/${{ env.FTP_PARTIAL_PATH }}JR230-D20091215-T121917.raw
- name: Run Tests
run: pytest -m "not ignore"

0 comments on commit 22a8fc4

Please sign in to comment.