Skip to content

Python dependabot, ci jobs and testing. #6

Python dependabot, ci jobs and testing.

Python dependabot, ci jobs and testing. #6

Workflow file for this run

name: Python Tests
on:
pull_request:
branches:
- main
jobs:
test-python-rest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
defaults:
run:
working-directory: ./client-samples/python/rest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run pytest
run: pytest tests/
- name: Run black check (linting)
run: black --check .
test-python-websocket:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
defaults:
run:
working-directory: ./client-samples/python/websockets
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run pytest
run: pytest tests/
- name: Run black check (linting)
run: black --check .