-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (43 loc) · 1.12 KB
/
python-client.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Python Client
on:
push:
branches: [main]
paths:
- .github/workflows/python-client.yml
- python-client/**
pull_request:
branches: [main]
paths:
- .github/workflows/python-client.yml
- python-client/**
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-${{ matrix.python-version }}-pip-
- name: Install
working-directory: python-client
run: |
pip3 install -r requirements.txt
pip3 install -r test-requirements.txt
# - name: Test
# working-directory: python-client
# run: |
# pytest --cov=libretime_client