Skip to content

Add on-device NaN debugging and unify StatefulFunction cache #392

Add on-device NaN debugging and unify StatefulFunction cache

Add on-device NaN debugging and unify StatefulFunction cache #392

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Daily CI Tests
on:
schedule:
# Runs 'at 00:00 on every day' UTC time.
# You can adjust the time. Use cron syntax (minute hour day month day-of-week).
# See: https://crontab.guru for help with cron syntax.
# Example: '0 3 * * *' runs at 3:00 AM UTC daily.
- cron: '0 2 * * *'
# Run on pull requests to any branch
pull_request:
# OPTIONAL: Allow manual triggering from the Actions tab
workflow_dispatch:
permissions:
contents: read # to fetch code
actions: write # to cancel previous workflows
# This is what will cancel the workflow
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test_linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.13"]
jax-version: ["0.6.0", "0.7.0", "0.8.0"]
# Optional: Exclude incompatible combinations if needed
# exclude:
# - python-version: "3.13"
# jax-version: "0.4.38"
steps:
- uses: actions/checkout@v6
- name: Print concurrency group
run: echo '${{ github.workflow }}-${{ github.ref }}'
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip cache purge
python -m pip install --upgrade pip build
python -m pip install -r requirements-dev.txt
if [ "${{ matrix.jax-version }}" == "" ]; then
python -m pip install jax || exit 1
else
python -m pip install jax==${{ matrix.jax-version }} || exit 1
fi
python -m pip install . || exit 1
- name: Test with pytest
run: |
pytest brainstate/