From d4effa64dbc88c67e929a71a622a9b7ab50624b8 Mon Sep 17 00:00:00 2001 From: Almar Klein Date: Fri, 24 Jan 2025 17:06:07 +0100 Subject: [PATCH 1/4] Enable tests for py versions up to 3.13 --- .github/workflows/ci.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e3b2b14..3bdefe6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,16 +69,31 @@ jobs: - name: Linux py39 os: ubuntu-latest pyversion: '3.9' + - name: Linux py39 + os: ubuntu-latest + pyversion: '3.10' + - name: Linux py39 + os: ubuntu-latest + pyversion: '3.10' + - name: Linux py311 + os: ubuntu-latest + pyversion: '3.11' + - name: Linux py12 + os: ubuntu-latest + pyversion: '3.12' + - name: Linux py313 + os: ubuntu-latest + pyversion: '3.13' # - name: Linux pypy3 os: ubuntu-latest pyversion: 'pypy3.9' - name: Windows py38 os: windows-latest - pyversion: '3.8' + pyversion: '3.13' - name: MacOS py38 os: macos-latest - pyversion: '3.8' + pyversion: '3.13' steps: - uses: actions/checkout@v4 From 932265824e34de113dd2b3cd66c825617b994a98 Mon Sep 17 00:00:00 2001 From: Almar Klein Date: Fri, 24 Jan 2025 17:16:56 +0100 Subject: [PATCH 2/4] fix tests locally --- tests/test_parser2.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_parser2.py b/tests/test_parser2.py index 979b2c9..10da607 100644 --- a/tests/test_parser2.py +++ b/tests/test_parser2.py @@ -855,8 +855,9 @@ def test_async_and_await(self): assert "Promise" in evaljs(js + "spam()") assert "Promise" in evaljs(js + "eggs()") + assert "42" in evaljs(js + "foo()") assert "42" in evaljs(js + "spam()") - assert "42" not in evaljs(js + "eggs()") + assert "42" in evaljs(js + "eggs()") class TestClasses: From c2841bddc1cea51be0fcc0f01171df885b2b24b1 Mon Sep 17 00:00:00 2001 From: Almar Klein Date: Fri, 24 Jan 2025 17:19:31 +0100 Subject: [PATCH 3/4] fix ci script --- .github/workflows/ci.yml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3bdefe6..24ced7b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,35 +63,32 @@ jobs: fail-fast: false matrix: include: - - name: Linux py38 + - name: Linux py 3.8 os: ubuntu-latest pyversion: '3.8' - - name: Linux py39 + - name: Linux py 3.9 os: ubuntu-latest pyversion: '3.9' - - name: Linux py39 + - name: Linux py 3.10 os: ubuntu-latest pyversion: '3.10' - - name: Linux py39 - os: ubuntu-latest - pyversion: '3.10' - - name: Linux py311 + - name: Linux py 3.11 os: ubuntu-latest pyversion: '3.11' - - name: Linux py12 + - name: Linux py 3.12 os: ubuntu-latest pyversion: '3.12' - - name: Linux py313 + - name: Linux py 3.13 os: ubuntu-latest pyversion: '3.13' # - - name: Linux pypy3 + - name: Linux pypy os: ubuntu-latest pyversion: 'pypy3.9' - - name: Windows py38 + - name: Windows os: windows-latest pyversion: '3.13' - - name: MacOS py38 + - name: MacOS os: macos-latest pyversion: '3.13' From 8bef2f8d0bd52d64348c11dcd2d54e6d126dcd00 Mon Sep 17 00:00:00 2001 From: Almar Klein Date: Fri, 24 Jan 2025 17:20:37 +0100 Subject: [PATCH 4/4] restore --- tests/test_parser2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_parser2.py b/tests/test_parser2.py index 10da607..de6420e 100644 --- a/tests/test_parser2.py +++ b/tests/test_parser2.py @@ -857,7 +857,7 @@ def test_async_and_await(self): assert "42" in evaljs(js + "foo()") assert "42" in evaljs(js + "spam()") - assert "42" in evaljs(js + "eggs()") + # assert "42" in evaljs(js + "eggs()") # depends on the nodejs class TestClasses: