Skip to content

[pre-commit.ci] pre-commit autoupdate #221

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #221

Workflow file for this run

---
name: test
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches: [main]
pull_request:
branches: ['*']
jobs:
test:
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install ca-certificates
sudo apt-key adv --fetch-keys https://apt.sr-research.com/SRResearch_key
sudo add-apt-repository 'deb [arch=amd64] https://apt.sr-research.com SRResearch main'
sudo apt update
sudo apt install eyelink-display-software
python -m pip install --upgrade pip
- name: Install package
run: pip install .[test]
- uses: actions/cache@v4
id: cache
with:
path: /home/runner/work/eye2bids/eye2bids/tests/data/osf
key: data
- name: Install data
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
run: make test_data
- name: unit tests
run: python -m pytest tests --cov-report=xml