diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..d7b0872 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,35 @@ +name: Python package + +on: [push] + +env: + IGNITE_VERSION: 2.14.0 + IGNITE_HOME: /opt/ignite + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + cfg: + - {python: "3.7", toxenv: "py37"} + - {python: "3.8", toxenv: "py38"} + - {python: "3.9", toxenv: "py39"} + - {python: "3.10", toxenv: "py310"} + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.cfg.python}} + - name: Install Apache Ignite + run: | + curl -L https://apache-mirror.rbc.ru/pub/apache/ignite/${IGNITE_VERSION}/apache-ignite-slim-${IGNITE_VERSION}-bin.zip > ignite.zip + unzip ignite.zip -d /opt + mv /opt/apache-ignite-slim-${IGNITE_VERSION}-bin /opt/ignite + mv /opt/ignite/libs/optional/ignite-log4j2 /opt/ignite/libs/ + - name: Run tests + run: | + pip install tox + tox -e ${{ matrix.cfg.toxenv }}