Skip to content

Commit

Permalink
GitHub actions: remove unsupported Django version and unnecessary con…
Browse files Browse the repository at this point in the history
…dition
  • Loading branch information
PetrDlouhy committed Apr 1, 2022
1 parent fb9ccda commit 6a4eb1a
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ jobs:
exclude:
- DJANGO_VERSION: '4.0.*'
python-version: '3.7'
- DJANGO_VERSION: '3.1.*'
python-version: '3.10'
- DJANGO_VERSION: '3.0.*'
python-version: '3.10'
- DJANGO_VERSION: '2.2.*'
python-version: '3.10'

services:
postgres:
Expand Down Expand Up @@ -87,14 +93,7 @@ jobs:
if [ "$matrix.DB_ENGINE" = 'mysql' ]; then
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u db_user -p mysql mysql
fi
case "${{ matrix.DJANGO_VERSION }},${{ matrix.python-version }}" in
"2.2.*,3.10"|"3.0.*,3.10"|"3.1.*,3.10") # Django runs with warnings in this python version
python -m coverage run manage.py test
;;
*)
python -W error::DeprecationWarning -m coverage run manage.py test
;;
esac
python -W error::DeprecationWarning -m coverage run manage.py test
coverage xml && codecov
env:
POSTGRES_HOST: localhost
Expand Down

0 comments on commit 6a4eb1a

Please sign in to comment.