Skip to content

Commit 9e99158

Browse files
committed
BLD, TST: move linux jobs to github actions
1 parent 8b15e57 commit 9e99158

File tree

3 files changed

+99
-74
lines changed

3 files changed

+99
-74
lines changed

.github/workflows/build_test.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
name: Build_Test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
smoke_test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Set up Python 3.8
10+
uses: actions/setup-python@v2
11+
with:
12+
python-version: 3.8
13+
14+
- uses: actions/checkout@v2
15+
with:
16+
submodules: recursive
17+
fetch-depth: 0
18+
19+
- name: BeforeInstall
20+
run: ./tools/travis-before-install.sh
21+
22+
- name: Test
23+
run: ./tools/travis-test.sh
24+
25+
build_test:
26+
needs: smoke_test
27+
runs-on: ubuntu-latest
28+
strategy:
29+
matrix:
30+
python-version: [3.7, 3.8, 3.9]
31+
exclude:
32+
# This ran in the smoke_test
33+
- python-version: 3.8
34+
include:
35+
- env:
36+
USE_DEBUG: 1
37+
python-version: 3.8
38+
- env:
39+
NPY_USE_BLAS_ILP64: 1
40+
python-version: 3.8
41+
- env:
42+
USE_WHEEL: 1
43+
RUN_FULL_TESTS: 1
44+
RUN_COVERAGE: 1
45+
INSTALL_PICKLE5: 1
46+
python-version: 3.7
47+
- env:
48+
PYTHONOPTIMIZE: 2
49+
BLAS: None
50+
LAPACK: None
51+
ATLAS: None
52+
NPY_BLAS_ORDER: mkl,blis,openblas,atlas,blas
53+
NPY_LAPACK_ORDER: MKL,OPENBLAS,ATLAS,LAPACK
54+
USE_ASV: 1
55+
python-version: 3.7
56+
- env:
57+
NPY_RELAXED_STRIDES_CHECKING: 0
58+
DOWNLOAD_OPENBLAS: 1
59+
CHECK_BLAS: 1
60+
NPY_USE_BLAS_ILP64: 1
61+
python-version: 3.7
62+
- env:
63+
USE_WHEEL: 1
64+
NPY_RELAXED_STRIDES_DEBUG: 1
65+
python-version: 3.7
66+
- env:
67+
NUMPY_EXPERIMENTAL_ARRAY_FUNCTION: 0
68+
python-version: 3.7
69+
- env:
70+
BLAS: None
71+
LAPACK: None
72+
ATLAS: None
73+
python-version: 3.7
74+
75+
steps:
76+
- name: Set up Python ${{ matrix.python-version }}
77+
uses: actions/setup-python@v2
78+
with:
79+
python-version: ${{ matrix.python-version }}
80+
81+
- uses: actions/checkout@v2
82+
with:
83+
submodules: recursive
84+
fetch-depth: 0
85+
86+
- name: BeforeInstall
87+
run: ./tools/travis-before-install.sh
88+
89+
- name: Test
90+
run: ./tools/travis-test.sh
91+

.travis.yml

Lines changed: 1 addition & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,9 @@ cache:
2020
directories:
2121
- $HOME/.cache/pip
2222

23-
stages:
24-
# Do the style check and a single test job, don't proceed if it fails
25-
- name: Initial tests
26-
# Do the rest of the tests
27-
- name: Comprehensive tests
28-
2923
jobs:
3024
include:
31-
# Do all python versions without environment variables set
32-
- stage: Initial tests
33-
python: 3.8
34-
35-
- stage: Comprehensive tests
36-
python: 3.7
25+
- python: 3.7
3726
os: linux
3827
arch: ppc64le
3928
env:
@@ -59,68 +48,6 @@ jobs:
5948
- ATLAS=None
6049

6150

62-
63-
- python: 3.6
64-
- python: 3.7
65-
- python: 3.9-dev
66-
67-
- python: 3.8
68-
dist: focal
69-
env: USE_DEBUG=1
70-
addons:
71-
apt:
72-
packages:
73-
- *common_packages
74-
- cython3-dbg
75-
- python3-dbg
76-
- python3-dev
77-
- python3-setuptools
78-
79-
- python: 3.7
80-
env: USE_WHEEL=1 RUN_FULL_TESTS=1 RUN_COVERAGE=1 INSTALL_PICKLE5=1
81-
82-
- python: 3.7
83-
env: USE_SDIST=1
84-
85-
- python: 3.7
86-
env:
87-
- PYTHONOPTIMIZE=2
88-
- BLAS=None
89-
- LAPACK=None
90-
- ATLAS=None
91-
- NPY_BLAS_ORDER=mkl,blis,openblas,atlas,blas
92-
- NPY_LAPACK_ORDER=MKL,OPENBLAS,ATLAS,LAPACK
93-
- USE_ASV=1
94-
95-
- python: 3.7
96-
env:
97-
- NPY_RELAXED_STRIDES_CHECKING=0
98-
# use custom symbol-suffixed openblas build, not system ATLAS
99-
- DOWNLOAD_OPENBLAS=1
100-
- CHECK_BLAS=1
101-
- NPY_USE_BLAS_ILP64=1
102-
addons:
103-
apt:
104-
packages:
105-
- gfortran
106-
- eatmydata
107-
- libgfortran5
108-
- libgfortran3
109-
110-
- python: 3.7
111-
env: USE_WHEEL=1 NPY_RELAXED_STRIDES_DEBUG=1
112-
113-
- python: 3.7
114-
env: NUMPY_EXPERIMENTAL_ARRAY_FUNCTION=0
115-
116-
- python: 3.7
117-
env:
118-
- BLAS=None
119-
- LAPACK=None
120-
- ATLAS=None
121-
122-
123-
12451
before_install:
12552
- ./tools/travis-before-install.sh
12653

tools/travis-before-install.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ free -m
99
df -h
1010
ulimit -a
1111

12+
sudo apt install gfortran eatmydata libgfortran3 libgfortran5
13+
14+
if [ "$USE_DEBUG" ]
15+
then
16+
sudo apt install cpython3-dbg python3-dbg python3-dev python3-setuptools
17+
fi
18+
1219
mkdir builds
1320
pushd builds
1421

0 commit comments

Comments
 (0)