-
Notifications
You must be signed in to change notification settings - Fork 91
39 lines (39 loc) · 1 KB
/
test.yaml
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
name: Test
on:
- push
- pull_request
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: pip-${{ hashFiles('requirements/check.txt') }}
- uses: actions/setup-python@v4
with:
python-version: "3.7"
- run: pip3 install -r requirements/check.txt
- run: pip3 install -e .
- run: make proto
- run: flake8
- run: mypy grpclib examples
test:
needs: check
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: pip-${{ matrix.python-version }}-${{ hashFiles('requirements/test.txt') }}
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- run: pip3 install -r requirements/test.txt
- run: pip3 install -e .
- run: pytest