Upstream Compatibility #2
This file contains hidden or 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: 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@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0 | |
| 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 |