From 9060b2b7820395a3f0d09344d4f3543df3ddfa4b Mon Sep 17 00:00:00 2001 From: Max Bernstein Date: Sat, 7 Dec 2024 15:51:51 -0500 Subject: [PATCH 1/2] . --- .github/workflows/ci.yml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 78a5b5ed..44007d29 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,10 +29,7 @@ jobs: - run: poetry run ruff check scrapscript.py - run: poetry run ruff format --check scrapscript.py - run: poetry run mypy --strict scrapscript.py - run_interpreter_unit_tests: - strategy: - matrix: - PYTHON: [python3.8, python3.9, python3.10, python3.11, python3.12, python3.13] + install_pythons: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -40,11 +37,18 @@ jobs: run: sudo add-apt-repository --yes ppa:deadsnakes/ppa - name: Update local package lists run: sudo apt update - - name: Install Python - run: sudo apt install --yes ${{matrix.PYTHON}} + - name: Install Pythons + run: sudo apt install --yes python3.8 python3.9 python3.10 python3.11 python3.12 python3.13 + run_interpreter_unit_tests: + needs: [install_pythons] + strategy: + matrix: + PYTHON: [python3.8, python3.9, python3.10, python3.11, python3.12, python3.13] + steps: - name: Run interpreter tests run: ${{matrix.PYTHON}} scrapscript.py test run_compiler_unit_tests: + needs: [install_pythons] strategy: matrix: PYTHON: [python3.8, python3.9, python3.10, python3.11, python3.12, python3.13] @@ -52,13 +56,8 @@ jobs: USE_STATIC_HEAP: ["-DSTATIC_HEAP", ""] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Get deadsnakes repo - run: sudo add-apt-repository --yes ppa:deadsnakes/ppa - - name: Update local package lists - run: sudo apt update - name: Install deps - run: sudo apt install --yes ${{matrix.PYTHON}} ${{matrix.CC}} valgrind + run: sudo apt install --yes ${{matrix.CC}} valgrind - name: Run compiler tests run: CC=${{matrix.CC}} CFLAGS="${{matrix.USE_STATIC_HEAP}}" ${{matrix.PYTHON}} compiler_tests.py - name: Run compiler tests with ASAN From 5c2d5f42ec3139935f3d1164ed3e8b630d63288d Mon Sep 17 00:00:00 2001 From: Max Bernstein Date: Sat, 7 Dec 2024 21:10:51 -0500 Subject: [PATCH 2/2] . --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 44007d29..204fb8dd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,6 +41,7 @@ jobs: run: sudo apt install --yes python3.8 python3.9 python3.10 python3.11 python3.12 python3.13 run_interpreter_unit_tests: needs: [install_pythons] + runs-on: ubuntu-latest strategy: matrix: PYTHON: [python3.8, python3.9, python3.10, python3.11, python3.12, python3.13]