Skip to content

Merge pull request #17 from pynapple-org/lfp_plot #34

Merge pull request #17 from pynapple-org/lfp_plot

Merge pull request #17 from pynapple-org/lfp_plot #34

Workflow file for this run

name: CI
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
types:
- opened
- reopened
- synchronize
- ready_for_review
jobs:
nox:
strategy:
matrix:
os: [ubuntu-latest] #[ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.10','3.11', '3.12']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4 # Use v4 for compatibility with pyproject.toml
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .[dev]
- name: Run nox
run: |
nox
# - name: Coveralls
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# pip install coveralls
# coveralls --service=github
check:
if: always()
needs: nox
runs-on: ubuntu-latest
steps:
- name: Decide whether all tests and notebooks succeeded
uses: re-actors/alls-green@v1.2.2
with:
jobs: ${{ toJSON(needs) }}
# test-build-full:
# name: Run tests
# runs-on: ubuntu-latest
# if: ${{ !github.event.pull_request.draft }}
# strategy:
# fail-fast: false
# matrix:
# include:
# - name: Test py310
# pyversion: '3.10'
# - name: Test py311
# pyversion: '3.11'
# - name: Test py312
# pyversion: '3.12'
# steps:
# - uses: actions/checkout@v3
# - name: Set up Python
# uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.pyversion }}
# - name: Install llvmpipe and lavapipe for offscreen canvas
# run: |
# sudo apt-get update -y -qq
# sudo apt-get install --no-install-recommends -y ffmpeg libegl1-mesa libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers
# - name: Install dev dependencies
# run: |
# python -m pip install --upgrade pip setuptools
# pip install -e ".[tests]"
# - name: Test examples
# env:
# PYGFX_EXPECT_LAVAPIPE: true
# run: |
# WGPU_FORCE_OFFSCREEN=1 pytest -v tests/