|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one or more |
| 2 | +# contributor license agreements. See the NOTICE file distributed with |
| 3 | +# this work for additional information regarding copyright ownership. |
| 4 | +# The ASF licenses this file to You under the Apache License, Version 2.0 |
| 5 | +# (the "License"); you may not use this file except in compliance with |
| 6 | +# the License. You may obtain a copy of the License at |
| 7 | +# |
| 8 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +# |
| 10 | +# Unless required by applicable law or agreed to in writing, software |
| 11 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +# See the License for the specific language governing permissions and |
| 14 | +# limitations under the License. |
| 15 | + |
| 16 | +name: Python package |
| 17 | +on: [push] |
| 18 | + |
| 19 | +env: |
| 20 | + IGNITE_VERSION: 2.14.0 |
| 21 | + IGNITE_HOME: /opt/ignite |
| 22 | + |
| 23 | +jobs: |
| 24 | + build: |
| 25 | + runs-on: ubuntu-latest |
| 26 | + strategy: |
| 27 | + matrix: |
| 28 | + cfg: |
| 29 | + - {python: "3.7", toxenv: "py37"} |
| 30 | + - {python: "3.8", toxenv: "py38"} |
| 31 | + - {python: "3.9", toxenv: "py39"} |
| 32 | + - {python: "3.10", toxenv: "py310"} |
| 33 | + |
| 34 | + steps: |
| 35 | + - uses: actions/checkout@v3 |
| 36 | + - name: Set up Python ${{ matrix.python-version }} |
| 37 | + uses: actions/setup-python@v4 |
| 38 | + with: |
| 39 | + python-version: ${{ matrix.cfg.python}} |
| 40 | + - name: Install Apache Ignite |
| 41 | + run: | |
| 42 | + curl -L https://apache-mirror.rbc.ru/pub/apache/ignite/${IGNITE_VERSION}/apache-ignite-slim-${IGNITE_VERSION}-bin.zip > ignite.zip |
| 43 | + unzip ignite.zip -d /opt |
| 44 | + mv /opt/apache-ignite-slim-${IGNITE_VERSION}-bin /opt/ignite |
| 45 | + mv /opt/ignite/libs/optional/ignite-log4j2 /opt/ignite/libs/ |
| 46 | + - name: Run tests |
| 47 | + run: | |
| 48 | + pip install tox |
| 49 | + tox -e ${{ matrix.cfg.toxenv }} |
0 commit comments