Skip to content

Commit

Permalink
add python
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Mar 30, 2024
1 parent 58c7cab commit 9fda713
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,37 @@ jobs:
run: composer install --no-interaction --no-ansi --no-progress
- name: Run
run: php main.php
python:
name: Python
runs-on: ubuntu-latest
services:
mock:
image: mockserver/mockserver
ports:
- 1080:1080
defaults:
run:
working-directory: integration/python
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Init mockserver
run: "curl -X PUT http://127.0.0.1:1080/mockserver/expectation -H 'Content-Type: application/json' -d @./../../mockserver/initializerJson.json"
- name: Move sdkgen.json file
run: mv ./sdkgen.json ../../input/
- name: Generate
working-directory: .
env:
SDKGEN_CLIENT_ID: ${{ secrets.SDKGEN_CLIENT_ID }}
SDKGEN_CLIENT_SECRET: ${{ secrets.SDKGEN_CLIENT_SECRET }}
run: docker-compose up
- name: Move
working-directory: .
run: cp ./output/*.py ./integration/python/
- name: PIP install
run: pip install -r requirements.txt
- name: Run
run: python main.py

0 comments on commit 9fda713

Please sign in to comment.