From f8aae1c11c728973db7254d0ab4525f2582190f6 Mon Sep 17 00:00:00 2001 From: Adam Tyson Date: Thu, 25 Jul 2024 12:01:38 +0100 Subject: [PATCH] Test on all OSs --- .github/workflows/test_and_deploy.yml | 76 +++++++++++++-------------- 1 file changed, 37 insertions(+), 39 deletions(-) diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index ada3747..3168e81 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -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 @@ -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