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

Update deploy_to_test.yml #297

Merged
merged 1 commit into from
Dec 3, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .github/workflows/deploy_to_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down