Skip to content

Upstream Compatibility #9

Upstream Compatibility

Upstream Compatibility #9

name: Upstream Compatibility
on:
schedule:
- cron: "17 6 * * 1"
workflow_dispatch:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up display
run: |
sudo apt-get update
sudo apt-get install -y xvfb herbstluftwm
Xvfb :99 -screen 0 1400x900x24 -ac +extension GLX +render &
sleep 3
herbstluftwm &
sleep 1
env:
DISPLAY: :99.0
- name: Install uv
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
with:
enable-cache: true
version: "0.11.31"
- name: Set up Python
run: uv python install 3.12
- name: Install locked dependencies
run: uv sync --frozen --dev --python 3.12
- name: Install phylib from upstream master
run: uv pip install --python .venv "phylib @ git+https://github.com/cortex-lab/phylib.git@master"
- name: Test with pytest
run: uv run --no-sync pytest phy
env:
DISPLAY: :99.0
QT_QPA_PLATFORM: offscreen