Skip to content

Python CI actions

Python CI actions #1

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/