Skip to content

Commit

Permalink
Test on all OSs
Browse files Browse the repository at this point in the history
  • Loading branch information
adamltyson committed Jul 25, 2024
1 parent 41f0f3d commit f8aae1c
Showing 1 changed file with 37 additions and 39 deletions.
76 changes: 37 additions & 39 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,15 @@ jobs:
matrix:
# Run all supported Python versions on linux
os: [ubuntu-latest]
# python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.12"]
python-version: ["3.10", "3.11", "3.12"]
# Include one windows and two macOS (intel based and arm based) runs
# include:
# - os: macos-13
# python-version: "3.12"
# - os: macos-latest
# python-version: "3.12"
# - os: windows-latest
# python-version: "3.12"
include:
- os: macos-13
python-version: "3.12"
- os: macos-latest
python-version: "3.12"
- os: windows-latest
python-version: "3.12"

steps:
- name: Cache brainglobe data
Expand All @@ -64,36 +63,35 @@ 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"
#
#
# 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
# 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"
test_numba_disabled:
needs: [ linting, manifest ]
name: Run tests with numba disabled
runs-on: ubuntu-latest
env:
NUMBA_DISABLE_JIT: "1"


steps:
- name: Cache pooch data
uses: actions/cache@v4
with:
path: $HOME/.brainglobe"
key: brainglobe_dir

- 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
Expand Down

0 comments on commit f8aae1c

Please sign in to comment.