From 5193891ae449762508a0c773e1052986fc7f62bf Mon Sep 17 00:00:00 2001 From: Evgeni Burovski Date: Mon, 17 Mar 2025 12:48:25 +0100 Subject: [PATCH 1/3] CI: run array-api-tests for torch f64 default --- .github/workflows/array-api-tests-torch-f64.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/array-api-tests-torch-f64.yml diff --git a/.github/workflows/array-api-tests-torch-f64.yml b/.github/workflows/array-api-tests-torch-f64.yml new file mode 100644 index 00000000..45d1b10a --- /dev/null +++ b/.github/workflows/array-api-tests-torch-f64.yml @@ -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)')" From 441f02c0a63dea1586d94573a27f2ed05a79e641 Mon Sep 17 00:00:00 2001 From: Evgeni Burovski Date: Mon, 17 Mar 2025 12:53:12 +0100 Subject: [PATCH 2/3] . --- .github/workflows/array-api-tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/array-api-tests.yml b/.github/workflows/array-api-tests.yml index 6ace193a..f4b82fec 100644 --- a/.github/workflows/array-api-tests.yml +++ b/.github/workflows/array-api-tests.yml @@ -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} From dc1cb6525c1ea0e6f09396b7baa0809c85952203 Mon Sep 17 00:00:00 2001 From: Evgeni Burovski Date: Mon, 17 Mar 2025 13:25:03 +0100 Subject: [PATCH 3/3] .. --- .github/workflows/array-api-tests-torch-f64.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/array-api-tests-torch-f64.yml b/.github/workflows/array-api-tests-torch-f64.yml index 45d1b10a..5d3c40e0 100644 --- a/.github/workflows/array-api-tests-torch-f64.yml +++ b/.github/workflows/array-api-tests-torch-f64.yml @@ -9,4 +9,4 @@ jobs: 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)')" + ARRAY_API_TESTS_MODULE=exec('import array_api_compat.torch as xp; import torch; torch.set_default_dtype(xp.float64)')