From b678793d6dc2598bf597299b39263a0ef7cb7fdc Mon Sep 17 00:00:00 2001 From: Bidaya0 Date: Sat, 4 Dec 2021 02:04:29 +0800 Subject: [PATCH] Update deploy_to_test.yml --- .github/workflows/deploy_to_test.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy_to_test.yml b/.github/workflows/deploy_to_test.yml index 785b9ca6..e5950c2d 100644 --- a/.github/workflows/deploy_to_test.yml +++ b/.github/workflows/deploy_to_test.yml @@ -56,22 +56,22 @@ jobs: # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics -# - name: Waiting For MySql Init -# run: sleep 120 + - name: Waiting For MySql Init + run: sleep 90 - name: Run UnitTest run: | cp conf/config.ini.example conf/config.ini python3 manage.py test -# - name: Django Api Testing -# env: -# DATABASE_URL: ${{ secrets.DATABASE_URL }} -# run: | -# mysql --host=127.0.0.1 -uroot -p'dongtai-iast' -D dongtai_webapi < /home/runner/work/DongTai-webapi/DongTai-webapi/test/init.sql -# pip install schemathesis -# python3 manage.py runserver 0.0.0.0:8000 & -# schemathesis run --base-url "http://localhost:8000/" -H 'Authorization: Token 67aebd78e700ad36a82a152276196b5f49fafeb0' ./swagger.json --hypothesis-suppress-health-check=data_too_large,filter_too_much,too_slow,return_value,large_base_example,not_a_test_method,function_scoped_fixture --hypothesis-verbosity verbose + - name: Django Api Testing + env: + DATABASE_URL: ${{ secrets.DATABASE_URL }} + run: | + mysql --host=127.0.0.1 -uroot -p'dongtai-iast' -D dongtai_webapi < /home/runner/work/DongTai-webapi/DongTai-webapi/test/init.sql + pip install schemathesis + python3 manage.py runserver 0.0.0.0:8000 & + schemathesis run --base-url "http://localhost:8000/" -H 'Authorization: Token 67aebd78e700ad36a82a152276196b5f49fafeb0' ./swagger.json --hypothesis-suppress-health-check=data_too_large,filter_too_much,too_slow,return_value,large_base_example,not_a_test_method,function_scoped_fixture --hypothesis-verbosity verbose Deploy-to-test: