-
Notifications
You must be signed in to change notification settings - Fork 6
107 lines (103 loc) · 3.31 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
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()