Skip to content

Install deps once #207

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: trunk
Choose a base branch
from
Draft
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
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,36 +29,36 @@ 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
- name: Get deadsnakes repo
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]
runs-on: ubuntu-latest
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]
CC: [gcc, clang, tcc]
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
Expand Down
Loading