11
11
- release/*
12
12
13
13
jobs :
14
- validate :
15
- name : Code Validation
16
-
17
- runs-on : ubuntu-latest
18
-
14
+ # validate:
15
+ # name: Code Validation
16
+
17
+ # runs-on: ubuntu-latest
18
+
19
+ # steps:
20
+ # - name: Handle the code
21
+ # uses: actions/checkout@v2
22
+
23
+ # - name: "Set up Python 3.10"
24
+ # uses: actions/setup-python@v2
25
+ # with:
26
+ # python-version: "3.10"
27
+
28
+ # - name: Handle pip cache
29
+ # uses: actions/cache@v2
30
+ # with:
31
+ # path: ~/.cache/pip
32
+ # key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
33
+ # restore-keys: |
34
+ # ${{ runner.os }}-pip-
35
+
36
+ # - name: Install required dependencies
37
+ # run: |
38
+ # python3 -m pip install --upgrade pip
39
+ # pip install tox tox-wheel
40
+
41
+ # - name: Code check
42
+ # run: tox -e ${TOX_VENV}
43
+ # env:
44
+ # TOX_VENV: black,pep8
45
+
46
+ # test:
47
+ # needs: [validate]
48
+
49
+ # strategy:
50
+ # fail-fast: false
51
+ # matrix:
52
+ # python-version: ["3.7", "3.8", "3.9", "3.10", "pypy-3.7"]
53
+ # zk-version: ["3.4.14", "3.5.10", "3.6.3", "3.7.1"]
54
+ # include:
55
+ # - python-version: "3.7"
56
+ # tox-env: py37
57
+ # - python-version: "3.8"
58
+ # tox-env: py38
59
+ # - python-version: "3.9"
60
+ # tox-env: py39
61
+ # - python-version: "3.10"
62
+ # tox-env: py310
63
+ # - python-version: "pypy-3.7"
64
+ # tox-env: pypy3
65
+
66
+ # name: >
67
+ # Linux - Test Python ${{ matrix.python-version }},
68
+ # ZK ${{ matrix.zk-version }}
69
+
70
+ # runs-on: ubuntun-latest
71
+ # steps:
72
+ # - name: Handle the code
73
+ # uses: actions/checkout@v2
74
+
75
+ # - name: Set up Python ${{ matrix.python-version }}
76
+ # uses: actions/setup-python@v2
77
+ # with:
78
+ # python-version: ${{ matrix.python-version }}
79
+
80
+ # - name: Handle pip cache
81
+ # uses: actions/cache@v2
82
+ # with:
83
+ # path: ~/.cache/pip
84
+ # key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
85
+ # restore-keys: |
86
+ # ${{ runner.os }}-pip-
87
+
88
+ # - name: Handle ZK installation cache
89
+ # uses: actions/cache@v2
90
+ # with:
91
+ # path: zookeeper
92
+ # key: ${{ runner.os }}-zookeeper
93
+ # restore-keys: |
94
+ # ${{ runner.os }}-zookeeper
95
+
96
+ # - name: Install required dependencies
97
+ # run: |
98
+ # sudo apt-get -y install libevent-dev krb5-kdc krb5-admin-server libkrb5-dev
99
+ # python3 -m pip install --upgrade pip
100
+ # pip install tox
101
+
102
+ # - name: Test with tox
103
+ # run: tox -e ${TOX_VENV}
104
+ # env:
105
+ # TOX_VENV: ${{ format('{0}-{1}', matrix.tox-env, 'gevent-eventlet-sasl,codecov') }}
106
+ # ZOOKEEPER_VERSION: ${{ matrix.zk-version }}
107
+ # # TODO: can be removed once tests for ZK 3.4 are removed
108
+ # ZOOKEEPER_PREFIX: "${{ !contains(matrix.zk-version, '3.4') && 'apache-' || '' }}"
109
+ # ZOOKEEPER_SUFFIX: "${{ !contains(matrix.zk-version, '3.4') && '-bin' || '' }}"
110
+ # ZOOKEEPER_LIB: "${{ !contains(matrix.zk-version, '3.4') && 'lib' || '' }}"
111
+
112
+ # - name: Publish Codecov report
113
+ # uses: codecov/codecov-action@v2
114
+
115
+ test_windows :
116
+ # needs: [validate]
117
+ name : Windows - Test Python 3.10, ZK 3.7.1
118
+
119
+ runs-on : windows-latest
19
120
steps :
20
121
- name : Handle the code
21
122
uses : actions/checkout@v2
22
123
23
- - name : " Set up Python 3.10"
124
+ - name : Set up Python 3.10
24
125
uses : actions/setup-python@v2
25
126
with :
26
127
python-version : " 3.10"
@@ -33,58 +134,6 @@ jobs:
33
134
restore-keys : |
34
135
${{ runner.os }}-pip-
35
136
36
- - name : Install required dependencies
37
- run : |
38
- python3 -m pip install --upgrade pip
39
- pip install tox tox-wheel
40
-
41
- - name : Code check
42
- run : tox -e ${TOX_VENV}
43
- env :
44
- TOX_VENV : black,pep8
45
-
46
- test :
47
- needs : [validate]
48
-
49
- name : >
50
- Test Python ${{ matrix.python-version }},
51
- ZK ${{ matrix.zk-version }}
52
-
53
- runs-on : ubuntu-latest
54
-
55
- strategy :
56
- fail-fast : false
57
- matrix :
58
- python-version : ["3.7", "3.8", "3.9", "3.10", "pypy-3.7"]
59
- zk-version : ["3.4.14", "3.5.10", "3.6.3", "3.7.1"]
60
- include :
61
- - python-version : " 3.7"
62
- tox-env : py37
63
- - python-version : " 3.8"
64
- tox-env : py38
65
- - python-version : " 3.9"
66
- tox-env : py39
67
- - python-version : " 3.10"
68
- tox-env : py310
69
- - python-version : " pypy-3.7"
70
- tox-env : pypy3
71
- steps :
72
- - name : Handle the code
73
- uses : actions/checkout@v2
74
-
75
- - name : Set up Python ${{ matrix.python-version }}
76
- uses : actions/setup-python@v2
77
- with :
78
- python-version : ${{ matrix.python-version }}
79
-
80
- - name : Handle pip cache
81
- uses : actions/cache@v2
82
- with :
83
- path : ~/.cache/pip
84
- key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
85
- restore-keys : |
86
- ${{ runner.os }}-pip-
87
-
88
137
- name : Handle ZK installation cache
89
138
uses : actions/cache@v2
90
139
with :
@@ -93,21 +142,24 @@ jobs:
93
142
restore-keys : |
94
143
${{ runner.os }}-zookeeper
95
144
145
+ # https://github.com/actions/setup-java
146
+ - name : Setup Java
147
+ uses : actions/setup-java@v3
148
+ with :
149
+ distribution : ' temurin'
150
+ java-version : ' 17'
151
+
96
152
- name : Install required dependencies
97
153
run : |
98
- sudo apt-get -y install libevent-dev krb5-kdc krb5-admin-server libkrb5-dev
99
154
python3 -m pip install --upgrade pip
100
155
pip install tox
101
156
102
157
- name : Test with tox
103
- run : tox -e ${TOX_VENV}
158
+ run : tox -e py310
104
159
env :
105
- TOX_VENV : ${{ format('{0}-{1}', matrix.tox-env, 'gevent-eventlet-sasl,codecov') }}
106
- ZOOKEEPER_VERSION : ${{ matrix.zk-version }}
160
+ ZOOKEEPER_VERSION : 3.7.1
107
161
# TODO: can be removed once tests for ZK 3.4 are removed
108
- ZOOKEEPER_PREFIX : " ${{ !contains(matrix.zk-version, '3.4') && 'apache-' || '' }}"
109
- ZOOKEEPER_SUFFIX : " ${{ !contains(matrix.zk-version, '3.4') && '-bin' || '' }}"
110
- ZOOKEEPER_LIB : " ${{ !contains(matrix.zk-version, '3.4') && 'lib' || '' }}"
111
-
112
- - name : Publish Codecov report
113
- uses : codecov/codecov-action@v2
162
+ ZOOKEEPER_PREFIX : " apache-"
163
+ ZOOKEEPER_SUFFIX : " -bin"
164
+ ZOOKEEPER_LIB : " lib"
165
+ shell : bash
0 commit comments