diff options
| author | Asif Saif Uddin <auvipy@gmail.com> | 2023-04-08 22:45:08 +0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-08 22:45:08 +0600 |
| commit | 973dc3790ac25b9da7b6d2641ac72d95470f6ed8 (patch) | |
| tree | 9e7ba02d8520994a06efc37dde05fba722138189 /.github/workflows/ci.yaml | |
| parent | 7ceb675bb69917fae182ebdaf9a2298a308c3fa4 (diff) | |
| parent | 2de7f9f038dd62e097e490cb3fa609067c1c3c36 (diff) | |
| download | kombu-py310.tar.gz | |
Merge branch 'main' into py310py310
Diffstat (limited to '.github/workflows/ci.yaml')
| -rw-r--r-- | .github/workflows/ci.yaml | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index dadcb5a8..e0e2a15b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,12 +6,13 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7,3.8,3.9,"3.11"] + python-version: [3.7,3.8,3.9,"3.10","3.11"] + steps: - name: Install system packages run: sudo apt update && sudo apt-get install libcurl4-openssl-dev libssl-dev - name: Check out code from GitHub - uses: actions/checkout@v2.3.5 + uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} id: python uses: actions/setup-python@main @@ -29,16 +30,16 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.7,3.8,3.9,"3.11"] + python-version: [3.7,3.8,3.9,"3.10","3.11"] experimental: [false] include: - - python-version: pypy3 + - python-version: pypy-3.9 experimental: true steps: - name: Install system packages run: sudo apt update && sudo apt-get install libcurl4-openssl-dev libssl-dev - name: Check out code from GitHub - uses: actions/checkout@v2.3.5 + uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} id: python uses: actions/setup-python@main @@ -46,10 +47,18 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies run: pip install --upgrade pip setuptools wheel tox tox-docker + # Tox fails if a Python versions contains a hyphen, this changes "pypy-3.9" to "pypy3.9". + - name: Determine Python version + run: echo PYTHON_VERSION=$(echo ${{ matrix.python-version }} | sed s/-//) >> $GITHUB_ENV - name: Run AMQP integration tests - run: tox -v -e ${{ matrix.python-version }}-linux-integration-py-amqp -- -v + run: tox -v -e ${{ env.PYTHON_VERSION }}-linux-integration-py-amqp -- -v - name: Run redis integration tests - run: tox -v -e ${{ matrix.python-version }}-linux-integration-py-redis -- -v + run: tox -v -e ${{ env.PYTHON_VERSION }}-linux-integration-py-redis -- -v + - name: Run MongoDB integration tests + run: tox -v -e ${{ env.PYTHON_VERSION }}-linux-integration-py-mongodb -- -v + - name: Run kafka integration tests + if: ${{ env.PYTHON_VERSION != 'pypy3.9'}} + run: tox -v -e ${{ env.PYTHON_VERSION }}-linux-integration-py-kafka -- -v #################### Linters and checkers #################### lint: @@ -57,12 +66,12 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.9] + python-version: ["3.10"] steps: - name: Install system packages run: sudo apt update && sudo apt-get install libcurl4-openssl-dev libssl-dev - name: Check out code from GitHub - uses: actions/checkout@v2.3.5 + uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} id: python uses: actions/setup-python@main @@ -76,3 +85,5 @@ jobs: run: tox -v -e pydocstyle -- -v - name: Run apicheck run: tox -v -e apicheck -- -v + - name: Run mypy + run: tox -v -e mypy -- -v |
