-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (35 loc) · 1021 Bytes
/
python-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Python Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
python-checkout-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
working-directory:
- ./client-samples/python/rest
- ./client-samples/python/websockets
defaults:
run:
working-directory: ${{ matrix.working-directory }}
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: Install dev dependencies
run: pip install -r dev-requirements.txt
- name: Run pytest
run: pytest tests/
- name: Run black check (linting)
run: black --check .