|
17 | 17 | runs-on: ubuntu-latest |
18 | 18 |
|
19 | 19 | steps: |
20 | | - - name: Handle the code |
21 | | - uses: actions/checkout@v4 |
| 20 | + - uses: actions/checkout@v4 |
22 | 21 |
|
23 | | - - name: "Set up Python 3.10" |
24 | | - uses: actions/setup-python@v4 |
| 22 | + - uses: actions/setup-python@v4 |
25 | 23 | with: |
26 | 24 | python-version: "3.10" |
27 | 25 |
|
|
47 | 45 | needs: [validate] |
48 | 46 |
|
49 | 47 | name: > |
50 | | - Test Python ${{ matrix.python-version }}, |
| 48 | + Linux - Test Python ${{ matrix.python-version }}, |
51 | 49 | ZK ${{ matrix.zk-version }} |
52 | | -
|
53 | 50 | runs-on: ubuntu-latest |
54 | 51 |
|
55 | 52 | strategy: |
|
69 | 66 | - python-version: "pypy-3.7" |
70 | 67 | tox-env: pypy3 |
71 | 68 | steps: |
72 | | - - name: Handle the code |
73 | | - uses: actions/checkout@v4 |
| 69 | + - uses: actions/checkout@v4 |
74 | 70 |
|
75 | 71 | - name: Set up Python ${{ matrix.python-version }} |
76 | 72 | uses: actions/setup-python@v4 |
@@ -111,3 +107,52 @@ jobs: |
111 | 107 |
|
112 | 108 | - name: Publish Codecov report |
113 | 109 | uses: codecov/codecov-action@v3 |
| 110 | + |
| 111 | + test_windows: |
| 112 | + needs: [validate] |
| 113 | + name: Windows - Sanity test using a single version of Python and ZK |
| 114 | + |
| 115 | + runs-on: windows-latest |
| 116 | + steps: |
| 117 | + - uses: actions/checkout@v4 |
| 118 | + |
| 119 | + - uses: actions/setup-python@v4 |
| 120 | + with: |
| 121 | + python-version: "3.10" |
| 122 | + |
| 123 | + - name: Handle pip cache |
| 124 | + uses: actions/cache@v3 |
| 125 | + with: |
| 126 | + path: ~/.cache/pip |
| 127 | + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }} |
| 128 | + restore-keys: | |
| 129 | + ${{ runner.os }}-pip- |
| 130 | +
|
| 131 | + - name: Handle ZK installation cache |
| 132 | + uses: actions/cache@v3 |
| 133 | + with: |
| 134 | + path: zookeeper |
| 135 | + key: ${{ runner.os }}-zookeeper |
| 136 | + restore-keys: | |
| 137 | + ${{ runner.os }}-zookeeper |
| 138 | +
|
| 139 | + # https://github.com/actions/setup-java |
| 140 | + - name: Setup Java |
| 141 | + uses: actions/setup-java@v3 |
| 142 | + with: |
| 143 | + distribution: 'temurin' |
| 144 | + java-version: '17' |
| 145 | + |
| 146 | + - name: Install required dependencies |
| 147 | + run: | |
| 148 | + python3 -m pip install --upgrade pip |
| 149 | + pip install tox |
| 150 | +
|
| 151 | + - name: Test with tox |
| 152 | + run: tox -e py310 |
| 153 | + env: |
| 154 | + ZOOKEEPER_VERSION: 3.7.1 |
| 155 | + ZOOKEEPER_PREFIX: "apache-" |
| 156 | + ZOOKEEPER_SUFFIX: "-bin" |
| 157 | + ZOOKEEPER_LIB: "lib" |
| 158 | + shell: bash |
0 commit comments