Skip to content

Pin numba to 0.59 and use windows-2019 for build #2988

Pin numba to 0.59 and use windows-2019 for build

Pin numba to 0.59 and use windows-2019 for build #2988

Workflow file for this run

name: Coverage
on:
push:
branches:
- main
pull_request:
permissions: read-all
jobs:
main:
name: Generate coverage and push to Coveralls.io
runs-on: ubuntu-latest
permissions:
pull-requests: write
defaults:
run:
shell: bash -l {0}
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.1
with:
access_token: ${{ github.token }}
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: conda-incubator/setup-miniconda@v3
with:
python-version: '3.10'
miniforge-variant: Mambaforge
miniforge-version: latest
activate-environment: "coverage"
channel-priority: "disabled"
environment-file: environment/coverage.yml
- name: Build numba-dpex
run: |
export PATH=$CONDA/bin-llvm:$PATH
CC=icx CXX=icpx python setup.py develop
- name: Test installation
run: |
conda list
python -c "import numba_dpex; print(numba_dpex.__file__)"
- name: Dump coverage test environment
run: |
conda env export > /tmp/env-cov.yml
cat /tmp/env-cov.yml
# Ignoring test due to opencl driver optimization bug
- name: Run tests with coverage
run: |
pytest -q --cov=./ --cov-report xml --pyargs numba_dpex \
-k 'not test_1d_strided_dpnp_array_in_kernel[2]'
- name: Coveralls
uses: coverallsapp/github-action@v2