diff options
author | mattip <matti.picus@gmail.com> | 2020-11-09 11:53:30 +0200 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2020-11-09 14:08:50 +0200 |
commit | aa2a8cdf7c4c12b71a14a7142aacb7a5f068b666 (patch) | |
tree | 8f6fff0f6bb5e1a2fe19de46804de45c5f2f3ace /.github | |
parent | 9e99158a616ecc6606f398c20e78cdde83ff5047 (diff) | |
download | numpy-aa2a8cdf7c4c12b71a14a7142aacb7a5f068b666.tar.gz |
BLD, TST: try templating with a common yml file
Diffstat (limited to '.github')
-rw-r--r-- | .github/actions/action.yml | 26 | ||||
-rw-r--r-- | .github/workflows/build_test.yml | 212 |
2 files changed, 175 insertions, 63 deletions
diff --git a/.github/actions/action.yml b/.github/actions/action.yml new file mode 100644 index 000000000..a4dcfaa75 --- /dev/null +++ b/.github/actions/action.yml @@ -0,0 +1,26 @@ +name: DoTheWork +description: "checkout repo, build and run tests" +runs: + using: composite + steps: + - name: Show env + shell: bash + run: | + echo NPY_RELAXED_STRIDES_DEBUG $NPY_RELAXED_STRIDES_DEBUG + echo NPY_RELAXED_STRIDES_CHECKING $NPY_RELAXED_STRIDES_CHECKING + echo CHECK_BLAS $CHECK_BLAS + echo DOWNLOAD_OPENBLAS $DOWNLOAD_OPENBLAS + echo USE_DEBUG $USE_DEBUG + echo NPY_USE_BLAS_ILP64 $NPY_USE_BLAS_ILP64 + echo NUMPY_EXPERIMENTAL_ARRAY_FUNCTION $NUMPY_EXPERIMENTAL_ARRAY_FUNCTION + echo USE_ASV $USE_ASV + python -c "import sys; print(sys.version)" + + - name: BeforeInstall + shell: bash + run: ./tools/travis-before-install.sh + + - name: Test + shell: bash + run: ./tools/travis-test.sh + diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index 7e1117471..696c5ae5c 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -2,90 +2,176 @@ name: Build_Test on: [push, pull_request] +defaults: + run: + shell: bash + +env: + DOWNLOAD_OPENBLAS: 1 + PYTHON_VERSION: 3.7 + jobs: smoke_test: runs-on: ubuntu-latest steps: - - name: Set up Python 3.8 - uses: actions/setup-python@v2 + - uses: actions/checkout@v2 + with: + submodules: recursive + fetch-depth: 0 + - uses: actions/setup-python@v2 with: - python-version: 3.8 + python-version: ${{ env.PYTHON_VERSION }} + - uses: ./.github/actions + + basic: + needs: smoke_test + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.8, 3.9] + steps: + - uses: actions/checkout@v2 + with: + submodules: recursive + fetch-depth: 0 + - uses: actions/setup-python@v2 + with: + python-version: ${{ env.PYTHON_VERSION }} + - uses: ./.github/actions + debug: + needs: smoke_test + runs-on: ubuntu-latest + env: + USE_DEBUG: 1 + steps: - uses: actions/checkout@v2 with: submodules: recursive fetch-depth: 0 + - uses: actions/setup-python@v2 + with: + python-version: ${{ env.PYTHON_VERSION }} + - uses: ./.github/actions - - name: BeforeInstall - run: ./tools/travis-before-install.sh + blas64: + needs: smoke_test + runs-on: ubuntu-latest + env: + NPY_USE_BLAS_ILP64: 1 + steps: + - uses: actions/checkout@v2 + with: + submodules: recursive + fetch-depth: 0 + - uses: actions/setup-python@v2 + with: + python-version: ${{ env.PYTHON_VERSION }} + - uses: ./.github/actions - - name: Test - run: ./tools/travis-test.sh - - build_test: + full: 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 + env: + USE_WHEEL: 1 + RUN_FULL_TESTS: 1 + RUN_COVERAGE: 1 + INSTALL_PICKLE5: 1 + steps: + - uses: actions/checkout@v2 + with: + submodules: recursive + fetch-depth: 0 + - uses: actions/setup-python@v2 + with: + python-version: ${{ env.PYTHON_VERSION }} + - uses: ./.github/actions + benchmark: + needs: smoke_test + runs-on: ubuntu-latest + 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 steps: - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + - uses: actions/checkout@v2 + with: + submodules: recursive + fetch-depth: 0 + - uses: actions/setup-python@v2 with: - python-version: ${{ matrix.python-version }} + python-version: ${{ env.PYTHON_VERSION }} + - uses: ./.github/actions + no_relaxed_strides: + needs: smoke_test + runs-on: ubuntu-latest + env: + NPY_RELAXED_STRIDES_CHECKING: 0 + CHECK_BLAS: 1 + NPY_USE_BLAS_ILP64: 1 + steps: - uses: actions/checkout@v2 with: submodules: recursive fetch-depth: 0 + - uses: actions/setup-python@v2 + with: + python-version: ${{ env.PYTHON_VERSION }} + - uses: ./.github/actions - - name: BeforeInstall - run: ./tools/travis-before-install.sh + use_wheel: + needs: smoke_test + runs-on: ubuntu-latest + env: + USE_WHEEL: 1 + NPY_RELAXED_STRIDES_DEBUG: 1 + steps: + - uses: actions/checkout@v2 + with: + submodules: recursive + fetch-depth: 0 + - uses: actions/setup-python@v2 + with: + python-version: ${{ env.PYTHON_VERSION }} + - uses: ./.github/actions + + no_array_func: + needs: smoke_test + runs-on: ubuntu-latest + env: + NUMPY_EXPERIMENTAL_ARRAY_FUNCTION: 0 + steps: + - uses: actions/checkout@v2 + with: + submodules: recursive + fetch-depth: 0 + - uses: actions/setup-python@v2 + with: + python-version: ${{ env.PYTHON_VERSION }} + - uses: ./.github/actions + + no_openblas: + needs: smoke_test + runs-on: ubuntu-latest + env: + BLAS: None + LAPACK: None + ATLAS: None + DOWNLOAD_OPENBLAS: '' + steps: + - uses: actions/checkout@v2 + with: + submodules: recursive + fetch-depth: 0 + - uses: actions/setup-python@v2 + with: + python-version: ${{ env.PYTHON_VERSION }} + - uses: ./.github/actions - - name: Test - run: ./tools/travis-test.sh - + |