Skip to content

Commit

Permalink
test workflow fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ansibleguy committed Jan 23, 2024
1 parent 85f027a commit 5126707
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit 5126707

Please sign in to comment.