diff .github/workflows/ci-test.yml @ 7872:163d2c60fdf3

test: benchmark no progress when INCI defined; set path; signal handling The progress reports on issue creation in the db breaks up the table in CI as each is reported on a new line. If the environment variable INCI is set to any value, don't generate progress output. Change GitHub action to define INCI Insert roundup root directory in sys.path so import from test directory will be found. Also set up signal handler to delete the database if ^C is pressed during creation. The interrupted db is incomplete (required data missing), but it is used as is for a subsequent run. This causes the benchmark to crash.
author John Rouillard <rouilj@ieee.org>
date Wed, 10 Apr 2024 12:54:18 -0400
parents 30fcdf60da44
children 3de80157606c
line wrap: on
line diff
--- a/.github/workflows/ci-test.yml	Wed Apr 10 00:14:58 2024 -0400
+++ b/.github/workflows/ci-test.yml	Wed Apr 10 12:54:18 2024 -0400
@@ -315,7 +315,7 @@
 
       - name: run benchmarks
         if: "contains(github.event.head_commit.message, 'benchmark')"        
-        run: PYTHONPATH=. python test/benchmark.py
+        run: INCI=1 python test/benchmark.py
         
   # in parallel build coveralls requires a finish step
   finish:

Roundup Issue Tracker: http://roundup-tracker.org/