summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/ci.yaml')
-rw-r--r--.github/workflows/ci.yaml29
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