-
Notifications
You must be signed in to change notification settings - Fork 1.4k
83 lines (78 loc) · 2.3 KB
/
python-package.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# Derived from https://github.com/actions/starter-workflows/blob/main/ci/python-package.yml
#
name: Python Package
on:
push:
branches: ["master", "dpkp/*"]
pull_request:
branches: ["master"]
env:
FORCE_COLOR: "1" # Make tools pretty.
PIP_DISABLE_PIP_VERSION_CHECK: "1"
PIP_NO_PYTHON_VERSION_WARNING: "1"
jobs:
build:
runs-on: ubuntu-latest
name: Tests on ${{ matrix.python-version }}
continue-on-error: ${{ matrix.experimental || 'false' }}
strategy:
fail-fast: false
matrix:
kafka-version:
- "0.8.2.2"
- "0.9.0.1"
- "0.10.2.2"
- "0.11.0.3"
- "1.1.1"
- "2.4.0"
- "2.5.0"
- "2.6.0"
python-version:
- "3.12"
include:
#- python-version: "pypy3.9"
# kafka-version: "2.6.0"
# experimental: true
#- python-version: "~3.13.0-0"
# kafka-version: "2.6.0"
# experimental: true
- python-version: "3.8"
kafka-version: "2.6.0"
- python-version: "3.9"
kafka-version: "2.6.0"
- python-version: "3.10"
kafka-version: "2.6.0"
- python-version: "3.11"
kafka-version: "2.6.0"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: |
requirements-dev.txt
- name: Install dependencies
run: |
sudo apt install -y libsnappy-dev libzstd-dev
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pip install tox-gh-actions
- name: Setup java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
- name: Check Java installation
run: source travis_java_install.sh
- name: Pull Kafka releases
run: ./build_integration.sh
env:
PLATFORM: ${{ matrix.platform }}
KAFKA_VERSION: ${{ matrix.kafka_version }}
- name: Test with tox
run: tox
env:
PLATFORM: ${{ matrix.platform }}
KAFKA_VERSION: ${{ matrix.kafka_version }}