-
Notifications
You must be signed in to change notification settings - Fork 5
50 lines (40 loc) · 1.09 KB
/
tests.yml
File metadata and controls
50 lines (40 loc) · 1.09 KB
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
name: Tests
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
matrix:
python-version: ['3.8', '3.9', '3.10']
steps:
- name: Setup Julia
uses: julia-actions/setup-julia@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
# install HPy from source if depending on a dev version
# git clone -b master --single-branch https://github.com/hpyproject/hpy
# git checkout 1234abcd
# cd hpy
# pip install .
pip install numpy cython pytest transonic pythran 'setuptools>=60.2' 'hpy>=0.9.0rc1'
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: build
run: |
python setup.py develop
python setup.py --hpy-abi=universal develop
- name: Run tests
run: |
pytest -s
- name: Run bench
run: |
cd bench
make bench_hpy
make