Skip to content

Create test data asset #357

Create test data asset

Create test data asset #357

Workflow file for this run

name: Build and Test
env:
ZENODO_RECORD_ID: 17423608
on:
push:
branches:
- main
- develop
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths-ignore:
- "**.md"
- "**.rst"
- "**.ipynb"
branches:
- main
- develop
jobs:
test_and_build:
if: github.event.pull_request.draft == false
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.10"]
name: Test and build for ${{ matrix.python-version }}, ${{ matrix.os }}
steps:
- name: Install zstd
run: |
sudo apt-get update
sudo apt-get install -y zstd
- uses: actions/checkout@v4
- uses: ./.github/actions/install_eitprocessing
with:
dependencies: testing
python-version: ${{ matrix.python-version }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Download test data archive from release
run: |
gh release download testdata-zenodo.${{ env.ZENODO_RECORD_ID }} --pattern "test_data.tar.zst"
- name: Extract test data
run: |
tar -x -f test_data.tar.zst
rm test_data.tar.zst
- name: Run pytest
run: pytest -v