forked from BasedHardware/omi
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (47 loc) · 1.24 KB
/
Copy pathpython-cli-ci.yml
File metadata and controls
54 lines (47 loc) · 1.24 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Python CLI
on:
push:
branches: [main]
paths:
- 'sdks/python-cli/**'
- '.github/workflows/python-cli-ci.yml'
pull_request:
branches: [main]
paths:
- 'sdks/python-cli/**'
- '.github/workflows/python-cli-ci.yml'
permissions:
contents: read
defaults:
run:
working-directory: sdks/python-cli
jobs:
tests:
name: ${{ matrix.label }}
strategy:
fail-fast: false
matrix:
include:
- label: Linux / Python 3.10
os: ubuntu-latest
python-version: '3.10'
- label: Linux / Python 3.12
os: ubuntu-latest
python-version: '3.12'
- label: Windows ACL / Python 3.12
os: windows-latest
python-version: '3.12'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: sdks/python-cli/pyproject.toml
- name: Install package and test dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"
- name: Run tests
run: python -m pytest -q