diff options
author | mattip <matti.picus@gmail.com> | 2020-11-09 08:59:49 +0200 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2020-11-09 11:00:46 +0200 |
commit | 9e99158a616ecc6606f398c20e78cdde83ff5047 (patch) | |
tree | 83dee6917ad55e9059a5ae29d83f00826e12f313 | |
parent | 8b15e57718042c75af22a25a7d604fa0f938f16e (diff) | |
download | numpy-9e99158a616ecc6606f398c20e78cdde83ff5047.tar.gz |
BLD, TST: move linux jobs to github actions
-rw-r--r-- | .github/workflows/build_test.yml | 91 | ||||
-rw-r--r-- | .travis.yml | 75 | ||||
-rwxr-xr-x | tools/travis-before-install.sh | 7 |
3 files changed, 99 insertions, 74 deletions
diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml new file mode 100644 index 000000000..7e1117471 --- /dev/null +++ b/.github/workflows/build_test.yml @@ -0,0 +1,91 @@ +name: Build_Test + +on: [push, pull_request] + +jobs: + smoke_test: + runs-on: ubuntu-latest + steps: + - name: Set up Python 3.8 + uses: actions/setup-python@v2 + with: + python-version: 3.8 + + - uses: actions/checkout@v2 + with: + submodules: recursive + fetch-depth: 0 + + - name: BeforeInstall + run: ./tools/travis-before-install.sh + + - name: Test + run: ./tools/travis-test.sh + + build_test: + needs: smoke_test + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.7, 3.8, 3.9] + exclude: + # This ran in the smoke_test + - python-version: 3.8 + include: + - env: + USE_DEBUG: 1 + python-version: 3.8 + - env: + NPY_USE_BLAS_ILP64: 1 + python-version: 3.8 + - env: + USE_WHEEL: 1 + RUN_FULL_TESTS: 1 + RUN_COVERAGE: 1 + INSTALL_PICKLE5: 1 + python-version: 3.7 + - env: + PYTHONOPTIMIZE: 2 + BLAS: None + LAPACK: None + ATLAS: None + NPY_BLAS_ORDER: mkl,blis,openblas,atlas,blas + NPY_LAPACK_ORDER: MKL,OPENBLAS,ATLAS,LAPACK + USE_ASV: 1 + python-version: 3.7 + - env: + NPY_RELAXED_STRIDES_CHECKING: 0 + DOWNLOAD_OPENBLAS: 1 + CHECK_BLAS: 1 + NPY_USE_BLAS_ILP64: 1 + python-version: 3.7 + - env: + USE_WHEEL: 1 + NPY_RELAXED_STRIDES_DEBUG: 1 + python-version: 3.7 + - env: + NUMPY_EXPERIMENTAL_ARRAY_FUNCTION: 0 + python-version: 3.7 + - env: + BLAS: None + LAPACK: None + ATLAS: None + python-version: 3.7 + + steps: + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - uses: actions/checkout@v2 + with: + submodules: recursive + fetch-depth: 0 + + - name: BeforeInstall + run: ./tools/travis-before-install.sh + + - name: Test + run: ./tools/travis-test.sh + diff --git a/.travis.yml b/.travis.yml index 91c65e1aa..6b7585a56 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,20 +20,9 @@ cache: directories: - $HOME/.cache/pip -stages: - # Do the style check and a single test job, don't proceed if it fails - - name: Initial tests - # Do the rest of the tests - - name: Comprehensive tests - jobs: include: - # Do all python versions without environment variables set - - stage: Initial tests - python: 3.8 - - - stage: Comprehensive tests - python: 3.7 + - python: 3.7 os: linux arch: ppc64le env: @@ -59,68 +48,6 @@ jobs: - ATLAS=None - - - python: 3.6 - - python: 3.7 - - python: 3.9-dev - - - python: 3.8 - dist: focal - env: USE_DEBUG=1 - addons: - apt: - packages: - - *common_packages - - cython3-dbg - - python3-dbg - - python3-dev - - python3-setuptools - - - python: 3.7 - env: USE_WHEEL=1 RUN_FULL_TESTS=1 RUN_COVERAGE=1 INSTALL_PICKLE5=1 - - - python: 3.7 - env: USE_SDIST=1 - - - python: 3.7 - env: - - PYTHONOPTIMIZE=2 - - BLAS=None - - LAPACK=None - - ATLAS=None - - NPY_BLAS_ORDER=mkl,blis,openblas,atlas,blas - - NPY_LAPACK_ORDER=MKL,OPENBLAS,ATLAS,LAPACK - - USE_ASV=1 - - - python: 3.7 - env: - - NPY_RELAXED_STRIDES_CHECKING=0 - # use custom symbol-suffixed openblas build, not system ATLAS - - DOWNLOAD_OPENBLAS=1 - - CHECK_BLAS=1 - - NPY_USE_BLAS_ILP64=1 - addons: - apt: - packages: - - gfortran - - eatmydata - - libgfortran5 - - libgfortran3 - - - python: 3.7 - env: USE_WHEEL=1 NPY_RELAXED_STRIDES_DEBUG=1 - - - python: 3.7 - env: NUMPY_EXPERIMENTAL_ARRAY_FUNCTION=0 - - - python: 3.7 - env: - - BLAS=None - - LAPACK=None - - ATLAS=None - - - before_install: - ./tools/travis-before-install.sh diff --git a/tools/travis-before-install.sh b/tools/travis-before-install.sh index b62d74f40..58dd1d66b 100755 --- a/tools/travis-before-install.sh +++ b/tools/travis-before-install.sh @@ -9,6 +9,13 @@ free -m df -h ulimit -a +sudo apt install gfortran eatmydata libgfortran3 libgfortran5 + +if [ "$USE_DEBUG" ] +then + sudo apt install cpython3-dbg python3-dbg python3-dev python3-setuptools +fi + mkdir builds pushd builds |