|
8 | 8 | strategy: |
9 | 9 | max-parallel: 5 |
10 | 10 | matrix: |
11 | | - python-version: ['3.8', '3.9', '3.10', 'pypy-3.7-nightly'] |
| 11 | + python-version: ['3.11', '3.12', 'pypy-3.11'] |
12 | 12 |
|
13 | 13 | steps: |
14 | 14 |
|
15 | 15 | - name: Setup Julia |
16 | | - uses: julia-actions/setup-julia@v1 |
| 16 | + uses: julia-actions/setup-julia@v2 |
17 | 17 |
|
18 | 18 | - name: Set up Python ${{ matrix.python-version }} |
19 | | - uses: actions/setup-python@v4 |
| 19 | + uses: actions/setup-python@v5 |
20 | 20 | with: |
21 | 21 | python-version: ${{ matrix.python-version }} |
22 | 22 |
|
23 | | - - if: startsWith(matrix.python-version, 'pypy') != true |
24 | | - name: Install HPy (only for CPython) |
25 | | - run: | |
26 | | - # git clone -b release/0.0.3 --single-branch https://github.com/hpyproject/hpy |
27 | | - # cd hpy |
28 | | - # pip install . |
29 | | - pip install hpy>=0.9.0rc1 |
| 23 | + - name: Checkout |
| 24 | + uses: actions/checkout@v4 |
30 | 25 |
|
31 | | - - name: Install dependencies |
| 26 | + - name: Build and install deps |
32 | 27 | run: | |
33 | | - pip install numpy cython pytest transonic pythran |
| 28 | + pip install -e .[full] |
34 | 29 |
|
35 | | - - name: Checkout |
36 | | - uses: actions/checkout@v3 |
37 | | - with: |
38 | | - fetch-depth: 0 |
| 30 | + - if: startsWith(matrix.python-version, 'pypy') != true |
| 31 | + name: Build universal extension (only needed for CPython) |
| 32 | + run: | |
| 33 | + pip install -e . --config-settings="--global-option=--hpy-abi=universal" |
39 | 34 |
|
40 | | - - name: build |
| 35 | + - name: Remove _piconumpy_hpy.py |
41 | 36 | run: | |
42 | | - python setup.py develop |
43 | | - python setup.py --hpy-abi=universal develop |
44 | 37 | rm -f piconumpy/_piconumpy_hpy.py |
45 | 38 |
|
46 | 39 | - name: Run tests |
|
52 | 45 | cd bench |
53 | 46 | make tmp_result_julia.txt |
54 | 47 | make bench_hpy |
55 | | - make |
56 | | - # let's rerun bench_hpy to get these results also at the end |
| 48 | + make bench_full |
| 49 | + # rerun bench_hpy to get these results also at the end |
57 | 50 | make bench_hpy |
0 commit comments