Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit b678793

Browse files
authored
Update deploy_to_test.yml
1 parent 0831229 commit b678793

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/deploy_to_test.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,22 +56,22 @@ jobs:
5656
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
5757
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
5858
59-
# - name: Waiting For MySql Init
60-
# run: sleep 120
59+
- name: Waiting For MySql Init
60+
run: sleep 90
6161

6262
- name: Run UnitTest
6363
run: |
6464
cp conf/config.ini.example conf/config.ini
6565
python3 manage.py test
6666
67-
# - name: Django Api Testing
68-
# env:
69-
# DATABASE_URL: ${{ secrets.DATABASE_URL }}
70-
# run: |
71-
# mysql --host=127.0.0.1 -uroot -p'dongtai-iast' -D dongtai_webapi < /home/runner/work/DongTai-webapi/DongTai-webapi/test/init.sql
72-
# pip install schemathesis
73-
# python3 manage.py runserver 0.0.0.0:8000 &
74-
# 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
67+
- name: Django Api Testing
68+
env:
69+
DATABASE_URL: ${{ secrets.DATABASE_URL }}
70+
run: |
71+
mysql --host=127.0.0.1 -uroot -p'dongtai-iast' -D dongtai_webapi < /home/runner/work/DongTai-webapi/DongTai-webapi/test/init.sql
72+
pip install schemathesis
73+
python3 manage.py runserver 0.0.0.0:8000 &
74+
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
7575
7676
7777
Deploy-to-test:

0 commit comments

Comments
 (0)