-
Notifications
You must be signed in to change notification settings - Fork 12
40 lines (40 loc) · 1.48 KB
/
tests.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
name: ducc-tests
on: [push]
jobs:
test-macos:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- run: python -m pip install --user --upgrade setuptools pybind11 pytest numpy scipy
- run: DUCC0_OPTIMIZATION=portable python -m pip install --user .
- run: python -m pytest python/test -x
test-windows:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- run: python -m pip install --user --upgrade setuptools pybind11 pytest numpy scipy
- run: python -m pip install --user .
- run: python -m pytest python/test -x
test-intel:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
- run: python -m pip install --user --upgrade setuptools pybind11 pytest scipy
- run: wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
- run: sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
- run: sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main"
- run: sudo apt update
- run: sudo apt install intel-oneapi-compiler-dpcpp-cpp
- run: |
source /opt/intel/oneapi/setvars.sh intel64
CC=icx CXX=icpx python3 -m pip install --user .
python -m pytest python/test -x