Skip to content

[JS] Fix enum generation #630

[JS] Fix enum generation

[JS] Fix enum generation #630

name: Test Python SDK
on:
workflow_dispatch:
pull_request:
branches:
- main
permissions:
contents: read
jobs:
build:
name: test python sdk
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '14'
- name: Strat tests mock server
working-directory: ./test
run: |
npm install
npm start &
sleep 5
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip'
- name: Install dependencies
working-directory: ./python/sdk
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r test-requirements.txt
- name: Run pytest
working-directory: ./python/sdk
run: pytest test --html=report/index.html --self-contained-html
- name: Archive test results
uses: actions/upload-artifact@v4
with:
name: test-reports
path: ./python/sdk/report