Bump uibcdf/action-build-and-upload-conda-packages from 1.3.0 to 1.4.0 #185
This file contains 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: Test | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
tags: | |
- '*' | |
permissions: | |
contents: read | |
jobs: | |
test_linux: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Miniconda | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
miniconda-version: "latest" | |
auto-update-conda: true | |
auto-activate-base: false | |
- name: Install dependencies | |
shell: bash -l {0} | |
run: | | |
conda install python=3.12 pytest coverage numpy numba flake8 conda-build clangxx=14 numba/label/dev::llvmlite setuptools_scm cython pytest-cov pyyaml | |
- name : Display packages and system info | |
shell: bash -l {0} | |
run: | | |
python -m numba -s | |
- name: Lint the package with flake8 | |
shell: bash -l {0} | |
run: | | |
flake8 | |
- name: Install numba-pixie with pip | |
shell: bash -l {0} | |
run: | | |
python -m pip install --no-deps --no-index --no-build-isolation -vv -e . | |
- name: Run pytest and print coverage Report | |
shell: bash -l {0} | |
run: | | |
pytest --verbose --cov=pixie --pyargs pixie | |
- name: Run pixie scripts, make sure they show the help screen | |
shell: bash -l {0} | |
run: | | |
pixie-cc -h | |
pixie-cythonize -h | |
- name: Run conda-build | |
shell: bash -l {0} | |
run: | | |
# need numba/label/dev for llvmlite>=0.44.0dev0 for global_value_type | |
conda-build buildscripts/conda_recipes/pixie/ -c numba/label/dev | |
if: always() | |
test_mac: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
# macos-14 is M1 | |
# Turn off macos-12 (x86) for now because of the TAPI problem | |
os: [macos-14] | |
# os: [macos-12, macos-14] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Miniconda | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
miniconda-version: "latest" | |
auto-update-conda: true | |
auto-activate-base: false | |
- name: Install dependencies | |
shell: bash -l {0} | |
run: | | |
conda install python=3.12 pytest coverage numpy numba conda-build clangxx=14 numba/label/dev::llvmlite setuptools_scm cython pytest-cov pyyaml | |
- name : Display packages and system info | |
shell: bash -l {0} | |
run: | | |
python -m numba -s | |
- name: Install numba-pixie with pip | |
shell: bash -l {0} | |
run: | | |
python -m pip install --no-deps --no-index --no-build-isolation -vv -e . | |
- name: Run pytest and print coverage Report | |
shell: bash -l {0} | |
run: | | |
export CONDA_BUILD_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk | |
pytest --verbose --cov=pixie --pyargs pixie | |
- name: Run conda-build | |
shell: bash -l {0} | |
run: | | |
export CONDA_BUILD_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk | |
# need numba/label/dev for llvmlite>=0.44.0dev0 for global_value_type | |
conda-build buildscripts/conda_recipes/pixie/ -c numba/label/dev | |
if: always() |