mirror of
https://github.com/pretix/pretix.git
synced 2026-08-11 10:57:00 +00:00
flush, always print
This commit is contained in:
@@ -24,8 +24,8 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
python-version: ["3.9", "3.10", "3.11"]
|
||||
database: [sqlite, postgres]
|
||||
python-version: [ "3.11"]
|
||||
database: [ postgres]
|
||||
exclude:
|
||||
- database: sqlite
|
||||
python-version: "3.9"
|
||||
@@ -65,7 +65,7 @@ jobs:
|
||||
run: make all compress
|
||||
- name: Run tests
|
||||
working-directory: ./src
|
||||
run: PRETIX_CONFIG_FILE=tests/travis_${{ matrix.database }}.cfg py.test -n 3 -p no:sugar --cov=./ --cov-report=xml --reruns 3 tests --maxfail=100
|
||||
run: PRETIX_CONFIG_FILE=tests/travis_${{ matrix.database }}.cfg py.test -n 3 -p no:sugar --cov=./ --cov-report=xml --reruns 3 tests --maxfail=100 || true
|
||||
|
||||
# XXXXXXXXXXXXXX for test only
|
||||
- name: print debug output
|
||||
|
||||
@@ -135,10 +135,11 @@ if os.environ.get("GITHUB_WORKFLOW", ""):
|
||||
# Check if the test even has DB access
|
||||
marker = request.node.get_closest_marker("django_db")
|
||||
f.write(str(time.time())+"\t"+ str(worker_id)+"\t"+str(request.path)+"\t"+ str(request.module)+"\t"+ str(request.function)+"\tstart\n")
|
||||
f.flush()
|
||||
# Run actual test
|
||||
yield
|
||||
f.write(str(time.time())+"\t"+ str(worker_id)+"\t"+str(request.path)+"\t"+ str(request.module)+"\t"+ str(request.function)+"\tend\n")
|
||||
|
||||
f.flush()
|
||||
# If yes, do a dummy query at the end of the test
|
||||
#if marker:
|
||||
# with connection.cursor() as cursor:
|
||||
|
||||
Reference in New Issue
Block a user