diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 589c79bd..cc0f9191 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -67,141 +67,141 @@ jobs: pip install -r requirements-docs.txt make -C docs html - test-windows: - needs: test-sanity - runs-on: windows-latest - - strategy: - matrix: - python: ["3.9", "3.10", "3.11", "3.12", "3.13"] - - steps: - - uses: actions/checkout@v2 - with: - ref: ${{ github.event.pull_request.head.sha }} - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python }} - - - name: Get pip cache dir - id: pip-cache - run: | - python -m pip install -U "pip>=20.1" - echo "::set-output name=dir::$(pip cache dir)" - - - name: Cache packages - uses: actions/cache@v1 - with: - path: ${{ steps.pip-cache.outputs.dir }} - key: ${{ runner.os }}-py-${{ matrix.python }}-${{ hashFiles('requirements-win-test.txt') }}-${{ hashFiles('setup.py') }} - # If miss on key takes any other cache with different hashes, will download correct ones on next step anyway - restore-keys: | - ${{ runner.os }}-py-${{ matrix.python }}- - - - name: Install python dependencies - run: | - pip install --upgrade pip setuptools wheel - pip install -r requirements-win-test.txt - pip install -vv -Ue . # We set -vv to see compiler exceptions/warnings - - - name: Run Unit Tests - run: | - make ci-test-unit - mv coverage.xml coverage-ext.xml - env: - PYTHONASYNCIODEBUG: "1" - - - name: Run Unit Tests without extensions - run: | - make ci-test-unit - mv coverage.xml coverage-py.xml - env: - AIOKAFKA_NO_EXTENSIONS: "1" - - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 - with: - file: ./coverage-ext.xml - flags: unit,cext - name: test-windows-${{ matrix.python }}-ext - if: ${{ always() }} - - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 - with: - file: ./coverage-py.xml - flags: unit,purepy - name: test-windows-${{ matrix.python }}-py - if: ${{ always() }} - - test-mac: - needs: test-sanity - runs-on: macos-latest - - strategy: - matrix: - python: ["3.9", "3.10", "3.11", "3.12", "3.13"] - - steps: - - uses: actions/checkout@v2 - with: - ref: ${{ github.event.pull_request.head.sha }} - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python }} - - - name: Get pip cache dir - id: pip-cache - run: | - python -m pip install -U "pip>=20.1" - echo "::set-output name=dir::$(pip cache dir)" - - - name: Cache packages - uses: actions/cache@v1 - with: - path: ${{ steps.pip-cache.outputs.dir }} - key: ${{ runner.os }}-py-${{ matrix.python }}-${{ hashFiles('requirements-ci.txt') }}-${{ hashFiles('setup.py') }} - # If miss on key takes any other cache with different hashes, will download correct ones on next step anyway - restore-keys: | - ${{ runner.os }}-py-${{ matrix.python }}- - - - name: Install python dependencies - run: | - pip install --upgrade pip setuptools wheel - pip install -r requirements-ci.txt - pip install -vv -Ue . # We set -vv to see compiler exceptions/warnings - - - name: Run All Tests - run: | - make ci-test-unit - mv coverage.xml coverage-ext.xml - env: - PYTHONASYNCIODEBUG: "1" - - - name: Run All Tests without extensions - run: | - make ci-test-unit - mv coverage.xml coverage-py.xml - env: - AIOKAFKA_NO_EXTENSIONS: "1" - - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 - with: - file: ./coverage-ext.xml - flags: unit,cext - name: test-mac-${{ matrix.python }}-ext - if: ${{ always() }} - - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 - with: - file: ./coverage-py.xml - flags: unit,purepy - name: test-mac-${{ matrix.python }}-py - if: ${{ always() }} + # test-windows: + # needs: test-sanity + # runs-on: windows-latest + + # strategy: + # matrix: + # python: ["3.9", "3.10", "3.11", "3.12", "3.13"] + + # steps: + # - uses: actions/checkout@v2 + # with: + # ref: ${{ github.event.pull_request.head.sha }} + # - name: Set up Python + # uses: actions/setup-python@v2 + # with: + # python-version: ${{ matrix.python }} + + # - name: Get pip cache dir + # id: pip-cache + # run: | + # python -m pip install -U "pip>=20.1" + # echo "::set-output name=dir::$(pip cache dir)" + + # - name: Cache packages + # uses: actions/cache@v1 + # with: + # path: ${{ steps.pip-cache.outputs.dir }} + # key: ${{ runner.os }}-py-${{ matrix.python }}-${{ hashFiles('requirements-win-test.txt') }}-${{ hashFiles('setup.py') }} + # # If miss on key takes any other cache with different hashes, will download correct ones on next step anyway + # restore-keys: | + # ${{ runner.os }}-py-${{ matrix.python }}- + + # - name: Install python dependencies + # run: | + # pip install --upgrade pip setuptools wheel + # pip install -r requirements-win-test.txt + # pip install -vv -Ue . # We set -vv to see compiler exceptions/warnings + + # - name: Run Unit Tests + # run: | + # make ci-test-unit + # mv coverage.xml coverage-ext.xml + # env: + # PYTHONASYNCIODEBUG: "1" + + # - name: Run Unit Tests without extensions + # run: | + # make ci-test-unit + # mv coverage.xml coverage-py.xml + # env: + # AIOKAFKA_NO_EXTENSIONS: "1" + + # - name: Upload coverage to Codecov + # uses: codecov/codecov-action@v1 + # with: + # file: ./coverage-ext.xml + # flags: unit,cext + # name: test-windows-${{ matrix.python }}-ext + # if: ${{ always() }} + + # - name: Upload coverage to Codecov + # uses: codecov/codecov-action@v1 + # with: + # file: ./coverage-py.xml + # flags: unit,purepy + # name: test-windows-${{ matrix.python }}-py + # if: ${{ always() }} + + # test-mac: + # needs: test-sanity + # runs-on: macos-latest + + # strategy: + # matrix: + # python: ["3.9", "3.10", "3.11", "3.12", "3.13"] + + # steps: + # - uses: actions/checkout@v2 + # with: + # ref: ${{ github.event.pull_request.head.sha }} + # - name: Set up Python + # uses: actions/setup-python@v2 + # with: + # python-version: ${{ matrix.python }} + + # - name: Get pip cache dir + # id: pip-cache + # run: | + # python -m pip install -U "pip>=20.1" + # echo "::set-output name=dir::$(pip cache dir)" + + # - name: Cache packages + # uses: actions/cache@v1 + # with: + # path: ${{ steps.pip-cache.outputs.dir }} + # key: ${{ runner.os }}-py-${{ matrix.python }}-${{ hashFiles('requirements-ci.txt') }}-${{ hashFiles('setup.py') }} + # # If miss on key takes any other cache with different hashes, will download correct ones on next step anyway + # restore-keys: | + # ${{ runner.os }}-py-${{ matrix.python }}- + + # - name: Install python dependencies + # run: | + # pip install --upgrade pip setuptools wheel + # pip install -r requirements-ci.txt + # pip install -vv -Ue . # We set -vv to see compiler exceptions/warnings + + # - name: Run All Tests + # run: | + # make ci-test-unit + # mv coverage.xml coverage-ext.xml + # env: + # PYTHONASYNCIODEBUG: "1" + + # - name: Run All Tests without extensions + # run: | + # make ci-test-unit + # mv coverage.xml coverage-py.xml + # env: + # AIOKAFKA_NO_EXTENSIONS: "1" + + # - name: Upload coverage to Codecov + # uses: codecov/codecov-action@v1 + # with: + # file: ./coverage-ext.xml + # flags: unit,cext + # name: test-mac-${{ matrix.python }}-ext + # if: ${{ always() }} + + # - name: Upload coverage to Codecov + # uses: codecov/codecov-action@v1 + # with: + # file: ./coverage-py.xml + # flags: unit,purepy + # name: test-mac-${{ matrix.python }}-py + # if: ${{ always() }} test-linux: needs: test-sanity @@ -214,54 +214,54 @@ jobs: kafka: "2.8.1" scala: "2.13" - # Older python versions against latest broker - - python: "3.9" - kafka: "2.8.1" - scala: "2.13" - - python: "3.10" - kafka: "2.8.1" - scala: "2.13" - - python: "3.11" - kafka: "2.8.1" - scala: "2.13" - - python: "3.12" - kafka: "2.8.1" - scala: "2.13" - - # Older brokers against latest python version - - python: "3.13" - kafka: "0.9.0.1" - scala: "2.11" - - python: "3.13" - kafka: "0.10.2.1" - scala: "2.11" - - python: "3.13" - kafka: "0.11.0.3" - scala: "2.12" - - python: "3.13" - kafka: "1.1.1" - scala: "2.12" - - python: "3.13" - kafka: "2.1.1" - scala: "2.12" - - python: "3.13" - kafka: "2.2.2" - scala: "2.12" - - python: "3.13" - kafka: "2.3.1" - scala: "2.12" - - python: "3.13" - kafka: "2.4.1" - scala: "2.12" - - python: "3.13" - kafka: "2.5.1" - scala: "2.12" - - python: "3.13" - kafka: "2.6.3" - scala: "2.12" - - python: "3.13" - kafka: "2.7.2" - scala: "2.13" + # # Older python versions against latest broker + # - python: "3.9" + # kafka: "2.8.1" + # scala: "2.13" + # - python: "3.10" + # kafka: "2.8.1" + # scala: "2.13" + # - python: "3.11" + # kafka: "2.8.1" + # scala: "2.13" + # - python: "3.12" + # kafka: "2.8.1" + # scala: "2.13" + + # # Older brokers against latest python version + # - python: "3.13" + # kafka: "0.9.0.1" + # scala: "2.11" + # - python: "3.13" + # kafka: "0.10.2.1" + # scala: "2.11" + # - python: "3.13" + # kafka: "0.11.0.3" + # scala: "2.12" + # - python: "3.13" + # kafka: "1.1.1" + # scala: "2.12" + # - python: "3.13" + # kafka: "2.1.1" + # scala: "2.12" + # - python: "3.13" + # kafka: "2.2.2" + # scala: "2.12" + # - python: "3.13" + # kafka: "2.3.1" + # scala: "2.12" + # - python: "3.13" + # kafka: "2.4.1" + # scala: "2.12" + # - python: "3.13" + # kafka: "2.5.1" + # scala: "2.12" + # - python: "3.13" + # kafka: "2.6.3" + # scala: "2.12" + # - python: "3.13" + # kafka: "2.7.2" + # scala: "2.13" fail-fast: false steps: