Skip to content

Commit

Permalink
Update coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ZzEeKkAa committed Jul 13, 2023
1 parent 078b5f8 commit 304c527
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 26 deletions.
24 changes: 14 additions & 10 deletions .github/actions/setup-numba-dpex/action.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,35 @@
name: Setup numba-dpex
description: 'Setup conda environment, build numba-dpex and setup devices'
inputs:
# environment-file:
environment:
description: Environment file
required: true
default: environment/dev.yml
environment-name:
description: Environment name
default: work-env
runs:
using: "composite"
steps:
- name: Setup conda
run: echo $CONDA/bin >> $GITHUB_PATH
shell: bash

- name: Setup conda environment
run: conda env update -n base -f ${{ inputs.environment }} --prune
shell: bash
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.9
mamba-version: "*"
activate-environment: "${{ inputs.environment-name }}"
channel-priority: "disabled"
environment-file: "${{ inputs.environment }}"

- name: Test conda environment
shell: bash -l {0}
run: conda list
shell: bash

- name: Build numba-dpex
shell: bash -l {0}
run: |
export PATH=$CONDA/bin-llvm:$PATH
python setup.py develop
shell: bash
- name: Setup OpenCL CPU device
shell: bash -l {0}
run: echo "OCL_ICD_FILENAMES=libintelocl.so" >> $GITHUB_ENV
shell: bash
4 changes: 4 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
main:
name: Generate coverage and push to Coveralls.io
runs-on: ubuntu-20.04
defaults:
run:
shell: bash -l {0}

steps:
- name: Cancel Previous Runs
Expand All @@ -28,6 +31,7 @@ jobs:
uses: ./.github/actions/setup-numba-dpex
with:
environment: environment/coverage.yml
environment-name: "dpex-coverage"

- name: Test installation
run: |
Expand Down
29 changes: 13 additions & 16 deletions environment/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,26 @@ channels:
- numba
- intel
- numba/label/dev
- pkgs/main
- conda-forge
- nodefaults
dependencies:
- python=3.9
- defaults:libffi
- libffi
- gxx_linux-64
- dpcpp_linux-64
- numba 0.57*
- numba
- dppy/label/dev:dpctl
- dppy/label/dev:dpnp
- spirv-tools
- dpcpp-llvm-spirv
- packaging
- pytest
- pip
- pip:
- coverage
- pre-commit
- flake8
- black==20.8b1
- pytest-cov
- pytest-xdist
- pexpect
variables:
CHANNELS: -c defaults -c numba -c intel -c numba/label/dev -c dppy/label/dev --override-channels
CHANNELS_DEV: -c dppy/label/dev -c defaults -c numba -c intel -c numba/label/dev --override-channels
- coverage
- pre-commit
- flake8
- black==20.8b1
- pytest-cov
- pytest-xdist
- pexpect
# variables:
# CHANNELS: -c nodefaults -c conda-forge -c numba -c intel -c numba/label/dev -c dppy/label/dev --override-channels
# CHANNELS_DEV: -c dppy/label/dev -c nodefaults -c conda-forge -c numba -c intel -c numba/label/dev --override-channels

0 comments on commit 304c527

Please sign in to comment.