Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schemathesis #1

Draft
wants to merge 16 commits into
base: schemathesis-push
Choose a base branch
from
Prev Previous commit
Next Next commit
fix
  • Loading branch information
pk5ls20 committed Dec 31, 2023
commit 92e12833cdd37ce03cda380401ce2608de4efb45
11 changes: 7 additions & 4 deletions .github/workflows/schemathesis_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,20 @@ jobs:
python main.py --local-index "images"
- name: Run the Server
run: >
python main.py
python main.py --port 12318
2>&1 | tee output.txt &
- name: Wait for the server to start
run: |
wait-for-it --service 127.0.0.1:8000 -t 600
- name: Wait for the server to start
wait-for-it --service 127.0.0.1:12318 -t 600
- name: wget
run: |
wget http://127.0.0.1:12318/
cat index.html
wget http://127.0.0.1:8000/
cat index.html.2
- name: Run the final schemathesis test
uses: schemathesis/action@v1
with:
schema: 'http://127.0.0.1:8000/openapi.json'
schema: 'http://127.0.0.1:12318/openapi.json'
args: '--force-schema-version=30'
token: ${{ secrets.SCHEMATHESIS_TOKEN }}
Loading