From 47f24c50f533d2d90b274d02b9d563cd4dade48e Mon Sep 17 00:00:00 2001 From: "d.kovalenko" Date: Wed, 21 Jan 2026 17:01:56 +0300 Subject: [PATCH] [CI] GitHub Action is used --- .github/workflows/python-verification.yml | 96 +++++++++++++++++++++++ .travis.yml | 42 ---------- 2 files changed, 96 insertions(+), 42 deletions(-) create mode 100644 .github/workflows/python-verification.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/python-verification.yml b/.github/workflows/python-verification.yml new file mode 100644 index 00000000..e4ba96b7 --- /dev/null +++ b/.github/workflows/python-verification.yml @@ -0,0 +1,96 @@ +# This workflow will install Python dependencies, run tests and lint with a variety of Python versions +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: Python Verification + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + include: + - platform: "std2-all" + python: "3.7" + postgres: "17" + - platform: "std2-all" + python: "3.8.0" + postgres: "17" + - platform: "std2-all" + python: "3.8" + postgres: "17" + - platform: "std2-all" + python: "3.9" + postgres: "17" + - platform: "std2-all" + python: "3.10" + postgres: "17" + - platform: "std2-all" + python: "3.11" + postgres: "17" + - platform: "std2-all" + python: "3.12" + postgres: "17" + - platform: "std2-all" + python: "3.13" + postgres: "17" + - platform: "std2-all" + python: "3.14" + postgres: "17" + - platform: "std" + python: "3" + postgres: "10" + - platform: "std" + python: "3" + postgres: "11" + - platform: "std" + python: "3" + postgres: "12" + - platform: "std" + python: "3" + postgres: "13" + - platform: "std" + python: "3" + postgres: "14" + - platform: "std" + python: "3" + postgres: "15" + - platform: "std" + python: "3" + postgres: "16" + - platform: "std-all" + python: "3" + postgres: "17" + - platform: "std-all" + python: "3" + postgres: "18" + - platform: "ubuntu_24_04" + python: "3" + postgres: "17" + - platform: "altlinux_10" + python: "3" + postgres: "17" + - platform: "altlinux_11" + python: "3" + postgres: "17" + + steps: + - name: Prepare variables + run: | + RUN_CFG__DOCKER_IMAGE_NAME="tests-${{ matrix.platform }}-py${{ matrix.python }}-pg${{ matrix.postgres }}" + echo "RUN_CFG__DOCKER_IMAGE_NAME=$RUN_CFG__DOCKER_IMAGE_NAME" >> $GITHUB_ENV + echo "---------- [$GITHUB_ENV]" + cat $GITHUB_ENV + - name: Checkout + uses: actions/checkout@v4 + - name: Build local image ${{ matrix.alpine }} + run: docker build --build-arg PG_VERSION="${{ matrix.postgres }}" --build-arg PYTHON_VERSION="${{ matrix.python }}" -t "${{ env.RUN_CFG__DOCKER_IMAGE_NAME }}" -f Dockerfile--${{ matrix.platform }}.tmpl . + - name: Run + run: docker run $(bash <(curl -s https://codecov.io/env)) -t "${{ env.RUN_CFG__DOCKER_IMAGE_NAME }}" diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a8f9b97d..00000000 --- a/.travis.yml +++ /dev/null @@ -1,42 +0,0 @@ -os: linux - -dist: bionic - -language: python - -services: - - docker - -install: - - docker build --build-arg PG_VERSION="${PG_VERSION}" --build-arg PYTHON_VERSION="${PYTHON_VERSION}" -t tests -f Dockerfile--${TEST_PLATFORM}.tmpl . - -script: - - docker run $(bash <(curl -s https://codecov.io/env)) -t tests - -notifications: - email: - on_success: change - on_failure: always - -env: - - TEST_PLATFORM=std2-all PYTHON_VERSION=3.7 PG_VERSION=17 - - TEST_PLATFORM=std2-all PYTHON_VERSION=3.8.0 PG_VERSION=17 - - TEST_PLATFORM=std2-all PYTHON_VERSION=3.8 PG_VERSION=17 - - TEST_PLATFORM=std2-all PYTHON_VERSION=3.9 PG_VERSION=17 - - TEST_PLATFORM=std2-all PYTHON_VERSION=3.10 PG_VERSION=17 - - TEST_PLATFORM=std2-all PYTHON_VERSION=3.11 PG_VERSION=17 - - TEST_PLATFORM=std2-all PYTHON_VERSION=3.12 PG_VERSION=17 - - TEST_PLATFORM=std2-all PYTHON_VERSION=3.13 PG_VERSION=17 - - TEST_PLATFORM=std2-all PYTHON_VERSION=3.14 PG_VERSION=17 - - TEST_PLATFORM=std PYTHON_VERSION=3 PG_VERSION=16 - - TEST_PLATFORM=std PYTHON_VERSION=3 PG_VERSION=15 - - TEST_PLATFORM=std PYTHON_VERSION=3 PG_VERSION=14 - - TEST_PLATFORM=std PYTHON_VERSION=3 PG_VERSION=13 - - TEST_PLATFORM=std PYTHON_VERSION=3 PG_VERSION=12 - - TEST_PLATFORM=std PYTHON_VERSION=3 PG_VERSION=11 - - TEST_PLATFORM=std PYTHON_VERSION=3 PG_VERSION=10 - - TEST_PLATFORM=std-all PYTHON_VERSION=3 PG_VERSION=17 - - TEST_PLATFORM=std-all PYTHON_VERSION=3 PG_VERSION=18 - - TEST_PLATFORM=ubuntu_24_04 PYTHON_VERSION=3 PG_VERSION=17 - - TEST_PLATFORM=altlinux_10 PYTHON_VERSION=3 PG_VERSION=17 - - TEST_PLATFORM=altlinux_11 PYTHON_VERSION=3 PG_VERSION=17