Skip to content

Commit fa8e80f

Browse files
committed
added new github actions test
testing if the dump_testdata has any changes if yes the current test_data.json is outdated compared to the database migrations
1 parent 6f60d8c commit fa8e80f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/tests.yml

+15
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,21 @@ jobs:
3939
- name: Run tests
4040
run: python manage.py test --shuffle
4141

42+
test_testdata:
43+
name: Test if testdata is up to date
44+
45+
runs-on: ubuntu-22.04
46+
47+
steps:
48+
- uses: actions/checkout@v4
49+
- uses: ./.github/setup_evap
50+
with:
51+
start-db: true
52+
53+
- run: python manage.py reload_testdata --noinput
54+
- run: python manage.py dump_testdata
55+
- run: git diff --exit-code
56+
4257
mypy:
4358
runs-on: ubuntu-22.04
4459

0 commit comments

Comments
 (0)