From: Federico Caselli Date: Thu, 6 Jul 2023 20:49:05 +0000 (+0200) Subject: repair pipelines for 2.7 X-Git-Tag: rel_1_4_50~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e1b54b64cb6f8e19877cda94dec6e67dbc610f6;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git repair pipelines for 2.7 Change-Id: Id4766704e4f7e4da2495ebdd8f44e4618a695df5 --- diff --git a/.github/workflows/create-wheels.yaml b/.github/workflows/create-wheels.yaml index d88da9038c..a00465d9fc 100644 --- a/.github/workflows/create-wheels.yaml +++ b/.github/workflows/create-wheels.yaml @@ -23,7 +23,6 @@ jobs: - "windows-latest" - "macos-latest" python-version: - - "2.7" - "3.6" - "3.7" - "3.8" @@ -249,12 +248,14 @@ jobs: pip-wheel-args: "-w ./dist --no-use-pep517 -v --no-deps" - name: Set up Python + if: ${{ matrix.python-version != 'cp27-cp27m' && matrix.python-version != 'cp27-cp27mu' }} uses: actions/setup-python@v4 with: python-version: ${{ steps.linux-py-version.outputs.python-version }} architecture: ${{ matrix.architecture }} - name: Check created wheel + if: ${{ matrix.python-version != 'cp27-cp27m' && matrix.python-version != 'cp27-cp27mu' }} # check that the wheel is compatible with the current installation. # If it is then does: # - install the created wheel without using the pypi index @@ -273,6 +274,22 @@ jobs: echo Not compatible. Skipping install. fi + - name: Check created wheel 27 + if: ${{ matrix.python-version == 'cp27-cp27m' || matrix.python-version == 'cp27-cp27mu' }} + # check that the wheel is compatible with the current installation. + # - runs the tests + uses: docker://quay.io/pypa/manylinux1_x86_64 + with: + args: | + bash -c " + export PATH=/opt/python/${{ matrix.python-version }}/bin:$PATH && + python --version && + pip install \"greenlet<2\" \"importlib-metadata;python_version<'3.8'\" && + pip install -f dist --no-index sqlalchemy && + python -c 'from sqlalchemy.util import has_compiled_ext; assert has_compiled_ext()' && + pip install pytest pytest-xdist ${{ matrix.extra-requires }} && + pytest -n2 -q test --nomemory --notimingintensive" + - name: Upload wheels to release # upload the generated wheels to the github release uses: sqlalchemyorg/upload-release-assets@sa diff --git a/.github/workflows/run-test.yaml b/.github/workflows/run-test.yaml index a2d7282637..c85f5043d3 100644 --- a/.github/workflows/run-test.yaml +++ b/.github/workflows/run-test.yaml @@ -28,7 +28,6 @@ jobs: matrix: os: - "ubuntu-latest" - - "ubuntu-20.04" - "windows-latest" - "macos-latest" python-version: @@ -109,6 +108,40 @@ jobs: - name: Run tests run: tox -e github-${{ matrix.build-type }} -- -q --nomemory --notimingintensive ${{ matrix.pytest-args }} + run-test-py27: + name: py27-${{ matrix.build-type }}-${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: + - "ubuntu-latest" + python-version: + - cp27-cp27m + - cp27-cp27mu + build-type: + - "cext" + - "nocext" + + fail-fast: false + + steps: + - name: Checkout repo + uses: actions/checkout@v3 + + - name: Run tests + uses: docker://quay.io/pypa/manylinux1_x86_64 + with: + args: | + bash -c " + export PATH=/opt/python/${{ matrix.python-version }}/bin:$PATH && + sed -i 's/greenlet/greenlet<2,/g' setup.cfg && + python --version && + python -m pip install --upgrade pip && + pip install --upgrade tox setuptools && + pip list && + tox -e github-${{ matrix.build-type }} -- -q --nomemory --notimingintensive ${{ matrix.pytest-args }} + " + run-test-arm64: name: arm64-${{ matrix.python-version }}-${{ matrix.build-type }}-${{ matrix.os }} runs-on: ${{ matrix.os }} @@ -116,7 +149,6 @@ jobs: matrix: os: - "ubuntu-latest" - - "ubuntu-20.04" python-version: - cp36-cp36m - cp37-cp37m