-
Notifications
You must be signed in to change notification settings - Fork 173
57 lines (47 loc) · 1.32 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
53
54
55
56
57
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:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
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@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Update PATH
run: 'echo "$HOME/.local/bin" >> "$GITHUB_PATH"'
- name: Install dependencies
env:
CASS_DRIVER_NO_EXTENSIONS: theytaketoolongtobuild
run: |
pip install pipx
pipx install poetry==1.8.2
make .venv
- name: Lint
run: |
make lint
- name: Test
run: |
make test