Skip to content

client: Extend Python version support #57

client: Extend Python version support

client: Extend Python version support #57

Workflow file for this run

name: Python tests
on:
push:
branches:
- main
tags:
- "v*.*.*"
pull_request:
jobs:
unit:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Install dependencies
run: |
poetry install --with dev
- name: Run unit tests
run: |
poetry run pytest tests/unit --ignore=tests/unit/client
integration:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Install dependencies
run: |
poetry install --with dev
- name: Run integration tests
run: |
poetry run pytest tests/integration -s
client:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Install dependencies
run: |
poetry install -P client --with dev
- name: Run client tests
run: |
poetry run pytest tests/unit/client