File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1313
1414jobs :
1515 build :
16- runs-on : ubuntu-20 .04
16+ runs-on : ubuntu-22 .04
1717
1818 services :
1919 postgres :
Original file line number Diff line number Diff line change 2121jobs :
2222 build-pypi-distribs :
2323 name : Build and publish library to PyPI
24- runs-on : ubuntu-20 .04
24+ runs-on : ubuntu-22 .04
2525
2626 steps :
2727 - uses : actions/checkout@v3
Original file line number Diff line number Diff line change 6161FEDERATEDCODE_CLIENT_ID = env .str ("FEDERATEDCODE_CLIENT_ID" )
6262FEDERATEDCODE_CLIENT_SECRET = env .str ("FEDERATEDCODE_CLIENT_SECRET" )
6363
64- RECAPTCHA_PUBLIC_KEY = env .str ("RECAPTCHA_PUBLIC_KEY" , "" )
65- RECAPTCHA_PRIVATE_KEY = env .str ("RECAPTCHA_PRIVATE_KEY" , "" )
66- SILENCED_SYSTEM_CHECKS = ["captcha.recaptcha_test_key_error" ]
64+ if env .str ("RECAPTCHA_PUBLIC_KEY" , None ):
65+ RECAPTCHA_PUBLIC_KEY = env .str ("RECAPTCHA_PUBLIC_KEY" )
66+
67+ if env .str ("RECAPTCHA_PRIVATE_KEY" , None ):
68+ RECAPTCHA_PRIVATE_KEY = env .str ("RECAPTCHA_PRIVATE_KEY" )
69+
70+ SILENCED_SYSTEM_CHECKS = ["django_recaptcha.recaptcha_test_key_error" ]
6771RECAPTCHA_DOMAIN = env .str ("RECAPTCHA_DOMAIN" , "www.recaptcha.net" )
6872
6973# Application definition
You can’t perform that action at this time.
0 commit comments