Skip to content

Commit 498d8b5

Browse files
committed
update pythran workflow
1 parent 33b8548 commit 498d8b5

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.github/workflows/pythran.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,10 @@ jobs:
2525
strategy:
2626
fail-fast: false
2727
matrix:
28-
os: [ubuntu-20.04]
29-
cpp-version: [g++-8, clang-7]
28+
os: [ubuntu-22.04]
29+
cpp-version: [g++-12, clang-cw137]
3030
python_version:
31-
- [pypy-3.10-nightly, pypy310]
32-
- [pypy-3.11-nightly, pypy311]
31+
- [pypy-3.11-nightly]
3332
steps:
3433
- uses: actions/[email protected]
3534
with:
@@ -48,20 +47,27 @@ jobs:
4847
python -m pip install cython
4948
python -m pip install numpy -Csetup-args="-Dallow-noblas=true"
5049
pip install -r requirements.txt
51-
pip install ipython nbval pytest-xdist wheel
5250
sudo apt install libopenblas-dev ${{ matrix.cpp-version }}
5351
- name: Setup
5452
run: |
5553
cd pythran
56-
python setup.py install
54+
python -m pip install .
55+
python -m pip install . 'pythran[test]'
5756
printf '[commpiler]\nblas=openblas\n' > ~/.config/.pythranrc
5857
printf 'cflags=-std=c++11 -Wall -Werror -Wno-unknown-pragmas -Wno-unused-local-typedefs -Wno-cpp -Wno-deprecated-declarations -Wno-absolute-value\n' >> ~/.config/.pythranrc
58+
printf 'cflags=-std=c++11 -Wall -Werror -Wno-unknown-pragmas -Wno-unused-local-typedefs -Wno-cpp -Wno-deprecated-declarations' >> ~/.config/.pythranrc
59+
if test "${{ matrix.cpp-version }}" = "clang-13" ; then printf -- " -Wno-absolute-value -Wno-parentheses-equality\n" ; else printf "\n" ; fi >> ~/.config/.pythranrc
60+
- name: Testing minimal CLI
61+
run: |
62+
pythran --version
63+
pythran --help
64+
pythran-config -vvv
5965
- name: Testing sequential
6066
run: |
6167
cd pythran
6268
export CC=`echo ${{ matrix.cpp-version }} | sed -e 's/g++/gcc/'`
6369
export CXX=`echo ${{ matrix.cpp-version }} | sed -e 's/clang/clang++/'`
64-
pytest pythran/tests/test_*.py -v --numprocesses=auto $PYTEST_ARGS
70+
pytest pythran/tests/test_*.py -v -x --numprocesses=auto $PYTEST_ARGS
6571
6672
pythran-windows:
6773
runs-on: windows-latest

0 commit comments

Comments
 (0)