Skip to content

Commit

Permalink
Initial
Browse files Browse the repository at this point in the history
  • Loading branch information
neNasko1 committed Dec 31, 2024
1 parent 2e76f95 commit 450fb8b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/array-api.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Array API coverage tests
on: [push]

on:
push: {} # Run on all branches
schedule:
- cron: '0 0 * * *' # Runs daily at 00:00 UTC

# Automatically stop old builds on the same branch/PR
concurrency:
Expand All @@ -23,8 +27,12 @@ jobs:
uses: prefix-dev/setup-pixi@ba3bb36eb2066252b2363392b7739741bb777659
- name: Install repository
run: pixi run postinstall
- name: Run Array API tests
- name: Run Array API tests (Scheduled)
if: ${{ github.event_name == 'schedule' }}
run: pixi run arrayapitests
- name: Run Array API tests (Push)
if: ${{ github.event_name == 'push' }}
run: pixi run arrayapitests --max-examples 16 --hypothesis-seed=0
- name: Upload Array API tests report
uses: actions/upload-artifact@v4
with:
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,9 @@ Run the tests with:
```bash
pixi run arrayapitests
```

Or for a faster feedback cycle, with a fixed seed:

```bash
pixi run arrayapitests --max-examples 16 --hypothesis-seed=0
```
2 changes: 1 addition & 1 deletion pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ test = "pytest"
test-coverage = "pytest --cov=ndonnx --cov-report=xml --cov-report=term-missing"

[feature.test.tasks.arrayapitests]
cmd = "pytest --max-examples 16 api-coverage-tests/array_api_tests/ -v -rfX --json-report --json-report-file=api-coverage-tests.json -n auto --disable-deadline --disable-extension linalg --skips-file=skips.txt --xfails-file=xfails.txt --hypothesis-seed=0"
cmd = "pytest api-coverage-tests/array_api_tests/ -v -rfX --json-report --json-report-file=api-coverage-tests.json -n auto --disable-deadline --disable-extension linalg --skips-file=skips.txt --xfails-file=xfails.txt"
[feature.test.tasks.arrayapitests.env]
ARRAY_API_TESTS_MODULE = "ndonnx"
ARRAY_API_TESTS_VERSION = "2023.12"
Expand Down

0 comments on commit 450fb8b

Please sign in to comment.