postinstall #5
Workflow file for this run
This file contains 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 coverage tests | |
on: | |
push: | |
branches: | |
- "*" | |
schedule: | |
- cron: "0 8 * * *" | |
# Automatically stop old builds on the same branch/PR | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: bash -el {0} | |
env: | |
QUETZ_API_KEY: ${{ secrets.QUETZ_API_KEY }} | |
jobs: | |
array-api-tests: | |
# Run if the commit message contains 'run array-api tests' or if the job is triggered on schedule | |
if: >- | |
contains(github.event.head_commit.message, 'run array-api tests') || | |
github.event_name == 'schedule' | |
name: "Array API test" | |
timeout-minutes: 90 | |
runs-on: ubuntu-latest-16core | |
steps: | |
- name: Checkout branch | |
uses: actions/[email protected] | |
with: | |
ref: ${{ github.head_ref }} | |
fetch-depth: 0 | |
submodules: "recursive" | |
- name: Set up Conda env | |
uses: mamba-org/setup-micromamba@f8b8a1e23a26f60a44c853292711bacfd3eac822 | |
with: | |
condarc-file: .github/assets/.condarc | |
environment-file: environment.yml | |
create-args: >- | |
python=3.12 | |
pytest-md | |
pytest-emoji | |
- name: Install repository | |
run: python -m pip install --no-build-isolation --no-deps --disable-pip-version-check -e . | |
- name: Run Array API tests | |
env: | |
ARRAY_API_TESTS_MODULE: ndonnx | |
run: | | |
pushd api-coverage-tests | |
pytest --ci --max-examples 2 array_api_tests/ --json-report --json-report-file=api-coverage-tests.json -n auto -vv --skips-file=../skips.txt | |
popd | |
- name: Upload Array API tests report | |
uses: actions/upload-artifact@v4 | |
with: | |
name: api-coverage-tests | |
path: api-coverage-tests/api-coverage-tests.json |