Repository navigation
Cyilp64 compile test #79
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Array API | |
| on: | |
| push: | |
| branches: | |
| - maintenance/** | |
| pull_request: | |
| branches: | |
| - main | |
| - maintenance/** | |
| permissions: | |
| contents: read # to fetch code (actions/checkout) | |
| env: | |
| CCACHE_DIR: "${{ github.workspace }}/.ccache" | |
| CCACHE_MAXSIZE: "250M" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| get_commit_message: | |
| name: Get commit message | |
| uses: ./.github/workflows/commit_message.yml | |
| xp_cpu: | |
| name: ${{ join(matrix.tasks, ' ') }} | |
| needs: get_commit_message | |
| if: > | |
| needs.get_commit_message.outputs.message == 1 | |
| && (github.repository == 'scipy/scipy' || github.repository == '') | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - tasks: [test-strict, test-torch, test-torch-float32, test-dask] | |
| environments: [array-api-strict, torch-cpu, dask-cpu] | |
| - tasks: [test-jax] | |
| environments: [jax-cpu] | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| submodules: recursive | |
| - uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4 | |
| with: | |
| pixi-version: v0.60.0 | |
| cache: false | |
| environments: build-cpu ${{ join(matrix.environments, ' ') }} | |
| - name: Set up ccache | |
| uses: ./.github/ccache | |
| with: | |
| workflow_name: ${{ github.workflow }} | |
| job_name: ${{ github.job }} | |
| - name: Build | |
| run: pixi run build-cpu | |
| - name: Test | |
| run: | | |
| export OMP_NUM_THREADS=2 | |
| for task in ${{ join(matrix.tasks, ' ') }}; do | |
| pixi run --skip-deps "$task" -- --durations 3 --timeout=60 | |
| done | |
| - name: Ccache performance | |
| shell: bash -l {0} | |
| run: | | |
| pixi exec ccache --evict-older-than 1d | |
| pixi exec ccache -s |