From 6c21cdd5a53266813c55e3882c53d125d87304a3 Mon Sep 17 00:00:00 2001 From: aspeddro Date: Sat, 21 Dec 2024 22:11:41 -0300 Subject: [PATCH] run tests from ci.yml --- .github/workflows/ci.yml | 6 ++++++ scripts/test.js | 14 +++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b782395613..247438179c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -326,6 +326,12 @@ jobs: - name: Run tests run: node scripts/test.js -all + - name: Docstrins tests + if: runner.os == 'macOS' + env: + UV_THREADPOOL_SIZE: 8 + run: node tests/docstrings_examples/DocTest.res.mjs --ignore-runtime-tests "Array.toReversed, Array.toSorted, Promise.withResolvers, Set.union, Set.isSupersetOf, Set.isSubsetOf, Set.isDisjointFrom, Set.intersection, Set.symmetricDifference, Set.difference" + - name: Check for diffs in tests folder run: git diff --ignore-cr-at-eol --exit-code tests diff --git a/scripts/test.js b/scripts/test.js index 5abdcf5e4a..3b5c8ca39e 100644 --- a/scripts/test.js +++ b/scripts/test.js @@ -137,13 +137,13 @@ async function runTests() { stdio: [0, 1, 2], }); // Ignore some tests not supported by node v18 - cp.execSync( - `node ${path.join("tests", "docstrings_examples", "DocTest.res.mjs")} --ignore-runtime-tests "Array.toReversed, Array.toSorted, Promise.withResolvers, Set.union, Set.isSupersetOf, Set.isSubsetOf, Set.isDisjointFrom, Set.intersection, Set.symmetricDifference, Set.difference"`, - { - cwd: path.join(__dirname, ".."), - stdio: [0, 1, 2], - }, - ); + // cp.execSync( + // `node ${path.join("tests", "docstrings_examples", "DocTest.res.mjs")} --ignore-runtime-tests "Array.toReversed, Array.toSorted, Promise.withResolvers, Set.union, Set.isSupersetOf, Set.isSubsetOf, Set.isDisjointFrom, Set.intersection, Set.symmetricDifference, Set.difference"`, + // { + // cwd: path.join(__dirname, ".."), + // stdio: [0, 1, 2], + // }, + // ); } } }