diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 15ba6b3..da78f79 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -42,31 +42,40 @@ jobs: pip install -r requirements.txt >/dev/null - name: Testing DB migrations for errors (1/3) - run: python3 manage.py makemigrations + run: | + export AW_DB="/tmp/$(date +%s).e1.aw.db" + python3 manage.py makemigrations working-directory: src/ansible-webui/ - name: Testing DB migrations for warnings (1/3) run: | + export AW_DB="/tmp/$(date +%s).w1.aw.db" m1=$(python3 manage.py makemigrations 2>&1) if echo "$m1" | grep -q 'WARNING'; then exit 1;fi working-directory: src/ansible-webui/ - name: Testing DB migrations for errors (2/3) - run: python3 manage.py makemigrations aw + run: | + export AW_DB="/tmp/$(date +%s).e2.aw.db" + python3 manage.py makemigrations aw working-directory: src/ansible-webui/ - name: Testing DB migrations for warnings (2/3) run: | + export AW_DB="/tmp/$(date +%s).w2.aw.db" m2=$(python3 manage.py migrate aw 2>&1) if echo "$m2" | grep -q 'WARNING'; then exit 1;fi working-directory: src/ansible-webui/ - name: Testing DB migrations for errors (3/3) - run: python3 manage.py migrate + run: | + export AW_DB="/tmp/$(date +%s).e3.aw.db" + python3 manage.py migrate working-directory: src/ansible-webui/ - name: Testing DB migrations for warnings (3/3) run: | + export AW_DB="/tmp/$(date +%s).w3.aw.db" m3=$(python3 manage.py migrate 2>&1) if echo "$m3" | grep -q 'WARNING'; then exit 1;fi working-directory: src/ansible-webui/