-
Notifications
You must be signed in to change notification settings - Fork 174
52 lines (43 loc) · 1.09 KB
/
python-package.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
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Lint and Test
on:
push:
branches: [ develop, v2.5, v2.5-unsupported-gcp ]
pull_request:
branches: [ develop, v2.5, v2.5-unsupported-gcp ]
jobs:
lint-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
container:
image: python:${{ matrix.python-version }}
services:
cassandra:
image: "cassandra:3.11"
memcached:
image: "memcached:1.5.6"
redis:
image: "redis:4.0.9"
zookeeper:
image: "zookeeper:3.4.10"
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
env:
CASS_DRIVER_NO_EXTENSIONS: theytaketoolongtobuild
run: |
python --version
python -m pip install -r requirements.txt
- name: Lint
run: |
make lint
- name: Test
run: |
make test