summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJon Janzen <jon@jonjanzen.com>2024-02-17 09:20:53 -0800
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2024-02-21 12:47:10 +0100
commit6feaad9113fd38ba3970032d2b7856c77403e29e (patch)
tree33dc3ff0d60ce0b1e59a50a401fd727705ef10fe /.github
parentc09e8f5fd8f977bf16e9ec5d11b370151fc81ea8 (diff)
Refs #30950, Refs #35187 -- Added tests for byte-compiled Django to daily builds.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/schedule_tests.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/schedule_tests.yml b/.github/workflows/schedule_tests.yml
index b4ef57cd6a..9c1444d2f5 100644
--- a/.github/workflows/schedule_tests.yml
+++ b/.github/workflows/schedule_tests.yml
@@ -37,6 +37,32 @@ jobs:
- name: Run tests
run: python tests/runtests.py -v2
+ pyc-only:
+ runs-on: ubuntu-latest
+ name: Byte-compiled Django with no source files (only .pyc files)
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ - name: Set up Python
+ uses: actions/setup-python@v5
+ with:
+ python-version: '3.12'
+ cache: 'pip'
+ - name: Install libmemcached-dev for pylibmc
+ run: sudo apt-get install libmemcached-dev
+ - name: Install and upgrade packaging tools
+ run: python -m pip install --upgrade pip setuptools wheel
+ - run: python -m pip install .
+ - name: Prepare site-packages
+ run: |
+ SITE_PACKAGE_ROOT=$(python -c 'import site; print(site.getsitepackages()[0])')
+ echo $SITE_PACKAGE_ROOT
+ python -m compileall -b $SITE_PACKAGE_ROOT
+ find $SITE_PACKAGE_ROOT -name '*.py' -print -delete
+ - run: python -m pip install -r tests/requirements/py3.txt
+ - name: Run tests
+ run: python tests/runtests.py --verbosity=2
+
pypy-sqlite:
runs-on: ubuntu-latest
name: Ubuntu, SQLite, PyPy3.10