Fix/test file download #208
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python Test | |
on: | |
push: | |
branches: | |
- dev | |
pull_request: | |
branches: | |
- main | |
- dev | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
strategy: | |
matrix: | |
python-version: ['3.9', '3.10', '3.11'] | |
env: | |
TEST_DATA_FOLDER: ${{ github.workspace }}/test_data | |
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: Run Tests | |
run: pytest -m "not ignore" |