Skip to content

Merge pull request #1433 from IntelPython/dependabot/github_actions/g… #15

Merge pull request #1433 from IntelPython/dependabot/github_actions/g…

Merge pull request #1433 from IntelPython/dependabot/github_actions/g… #15

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/[email protected]
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