Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/array-api-tests-torch-f64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Array API Tests (F64 PyTorch Latest)

on: [push, pull_request]

jobs:
array-api-tests-torch:
uses: ./.github/workflows/array-api-tests.yml
with:
package-name: torch
extra-env-vars: |
ARRAY_API_TESTS_SKIP_DTYPES=uint16,uint32,uint64
ARRAY_API_TESTS_MODULE=exec('import array_api_compat.torch as xp; import torch; torch.set_default_dtype(xp.float64)')
1 change: 1 addition & 0 deletions .github/workflows/array-api-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ jobs:
# tests fail on bad scalar type promotion behavior)
NPY_PROMOTION_STATE: weak
run: |
echo ">>>>>>>>>>>>> "$ARRAY_API_TESTS_MODULE
export PYTHONPATH="${GITHUB_WORKSPACE}/array-api-compat"
cd ${GITHUB_WORKSPACE}/array-api-tests
pytest array_api_tests/ --xfails-file ${GITHUB_WORKSPACE}/array-api-compat/${{ inputs.package-name }}${{ inputs.xfails-file-extra }}-xfails.txt --skips-file ${GITHUB_WORKSPACE}/array-api-compat/${{ inputs.package-name }}${{ inputs.skips-file-extra}}-skips.txt ${PYTEST_ARGS}
Loading