Skip to content

fix: merge corrections to last version #38

fix: merge corrections to last version

fix: merge corrections to last version #38

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.11", "3.12" ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Download and Install liblsl
run: |
wget https://github.com/sccn/liblsl/releases/download/v1.16.2/liblsl-1.16.2-jammy_amd64.deb
sudo apt install ./liblsl-1.16.2-jammy_amd64.deb
- name: 🐍 Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: 🪶 Install Poetry
uses: abatilo/actions-poetry@v2
- name: 🪶 Set up Poetry venv in project
run: |
make setup
- uses: actions/cache@v3
name: 🪶 Cache Poetry venv
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}
- name: 📦+🔧 Install package & dev dependencies
run: |
make install-dev
- name: 🧹 Lint with ruff & pre-commit
run: |
make lint
- name: 🧪 Test with pytest
run: |
make test