Skip to content

Commit 010d2ad

Browse files
committed
Update GitHub Actions ci
1 parent b4a99aa commit 010d2ad

File tree

1 file changed

+14
-21
lines changed

1 file changed

+14
-21
lines changed

.github/workflows/tests.yml

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,39 +8,32 @@ jobs:
88
strategy:
99
max-parallel: 5
1010
matrix:
11-
python-version: ['3.8', '3.9', '3.10', 'pypy-3.7-nightly']
11+
python-version: ['3.11', '3.12', 'pypy-3.11']
1212

1313
steps:
1414

1515
- name: Setup Julia
16-
uses: julia-actions/setup-julia@v1
16+
uses: julia-actions/setup-julia@v2
1717

1818
- name: Set up Python ${{ matrix.python-version }}
19-
uses: actions/setup-python@v4
19+
uses: actions/setup-python@v5
2020
with:
2121
python-version: ${{ matrix.python-version }}
2222

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
3025

31-
- name: Install dependencies
26+
- name: Build and install deps
3227
run: |
33-
pip install numpy cython pytest transonic pythran
28+
pip install -e .[full]
3429
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"
3934
40-
- name: build
35+
- name: Remove _piconumpy_hpy.py
4136
run: |
42-
python setup.py develop
43-
python setup.py --hpy-abi=universal develop
4437
rm -f piconumpy/_piconumpy_hpy.py
4538
4639
- name: Run tests
@@ -52,6 +45,6 @@ jobs:
5245
cd bench
5346
make tmp_result_julia.txt
5447
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
5750
make bench_hpy

0 commit comments

Comments
 (0)