From 7ecbb8025860542d7236b3eceb96a6b84e9bba2c Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Mon, 15 Jun 2026 23:10:33 +0100 Subject: [PATCH] Run full build variants with tests on a weekly schedule --- .github/workflows/linux-build-variants.yml | 9 ++++++++- buildtest.py | 6 +++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linux-build-variants.yml b/.github/workflows/linux-build-variants.yml index e8ee330f..abb96db5 100644 --- a/.github/workflows/linux-build-variants.yml +++ b/.github/workflows/linux-build-variants.yml @@ -13,6 +13,8 @@ on: - develop - fixes - release/* + schedule: + - cron: "0 2 * * 2" jobs: build: @@ -55,8 +57,13 @@ jobs: with: submodules: 'true' - - name: build + - name: build on push and pull_request + if: ${{ github.event_name != 'scheduled' }} run: ./buildtest.py + - name: build and test on schedule + if: ${{ github.event_name == 'scheduled' }} + run: ./buildtest.py --tests + - name: Report ccache stats run: ccache -s diff --git a/buildtest.py b/buildtest.py index 4c73171d..04d7460b 100755 --- a/buildtest.py +++ b/buildtest.py @@ -48,6 +48,7 @@ import os import random import shutil import subprocess +import sys import time class Duration(): @@ -124,6 +125,9 @@ def random_tests(count, run_tests): if __name__ == "__main__": - run_tests = False + if len(sys.argv) > 1 and sys.argv[1] == "--tests": + run_tests = True + else: + run_tests = False simple_tests(run_tests) #random_tests(2, run_tests)