Skip to content

Commit

Permalink
Merge pull request #74 from matham/match
Browse files Browse the repository at this point in the history
Add cell matching support
  • Loading branch information
alessandrofelder authored Jun 6, 2024
2 parents 6e5eeaf + acf0d63 commit a64cd9a
Show file tree
Hide file tree
Showing 6 changed files with 985 additions and 1 deletion.
43 changes: 43 additions & 0 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ jobs:
needs: [linting, manifest]
name: ${{ matrix.os }} py${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
env:
# pooch cache dir
BRAINGLOBE_TEST_DATA_DIR: "~/.pooch_cache"

strategy:
matrix:
# Run all supported Python versions on linux
Expand All @@ -41,6 +45,13 @@ jobs:
python-version: "3.12"

steps:
- name: Cache pooch data
uses: actions/cache@v4
with:
path: "~/.pooch_cache"
# hash on conftest in case url changes
key: ${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/conftest.py') }}

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
Expand All @@ -55,6 +66,38 @@ jobs:
python-version: ${{ matrix.python-version }}
secret-codecov-token: ${{ secrets.CODECOV_TOKEN }}

test_numba_disabled:
needs: [ linting, manifest ]
name: Run tests with numba disabled
runs-on: ubuntu-latest
env:
NUMBA_DISABLE_JIT: "1"
# pooch cache dir
BRAINGLOBE_TEST_DATA_DIR: "~/.pooch_cache"

steps:
- name: Cache pooch data
uses: actions/cache@v4
with:
path: "~/.pooch_cache"
# hash on conftest in case url changes
key: ${{ runner.os }}-3.11-${{ hashFiles('**/conftest.py') }}

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
# these libraries enable testing on Qt on linux
- uses: pyvista/setup-headless-display-action@v2
with:
qt: true
# Run test suite with numba disabled
- uses: neuroinformatics-unit/actions/test@v2
with:
python-version: "3.11"
secret-codecov-token: ${{ secrets.CODECOV_TOKEN }}
codecov-flags: "numba"

build_sdist_wheels:
name: Build source distribution
needs: [test]
Expand Down
Loading

0 comments on commit a64cd9a

Please sign in to comment.