fix: merge corrections to last version #38
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: 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 |