Skip to content

fix: test installing liblsl shared library using conda #23

fix: test installing liblsl shared library using conda

fix: test installing liblsl shared library using conda #23

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
paths:
- ".github/workflows/**"
- "nervous_sensors/**"
- "tests/**"
- "pyproject.toml"
- "poetry.lock"
- ".pre-commit-config.yaml"
pull_request:
branches: [ "main" ]
paths:
- ".github/workflows/**"
- "nervous_sensors/**"
- "tests/**"
- "pyproject.toml"
- "poetry.lock"
- ".pre-commit-config.yaml"
jobs:
Lint-Test:
strategy:
matrix:
os: [ ubuntu-latest ]
python-version: [ "3.10", "3.11", "3.12" ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: 🐍 Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Set up Miniconda for liblsl installation
uses: conda-incubator/setup-miniconda@v2

Check failure on line 41 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 41
with:
python-version: ${{ matrix.python-version }}
auto-activate-base: false
- name: 🪶 Install poetry
uses: abatilo/actions-poetry@v2
- name: 🪶 Set up virtualenv
run: |
poetry config virtualenvs.in-project true
- uses: actions/cache@v3
name: 🪶 Cache the virtualenv
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}
- name: 📦+🔧 Install liblsl
run: |
conda install -c conda-forge liblsl
- name: 📦+🔧 Install the dependencies with dev
run: |
poetry install --with dev
- name: 🧹 Lint with pre-commit
run: |
poetry run pre-commit run --all-files
- name: 🧪 Test with pytest
run: |
poetry run pytest