[MAINT] mark failing test as xfail (#101) #228
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: test | |
# Force to use color | |
env: | |
FORCE_COLOR: true | |
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 |