From ae64a9f8eee73f9a7528f7f50dc3c10e5e20dce4 Mon Sep 17 00:00:00 2001 From: Stevie Gayet <87695919+stegayet@users.noreply.github.com> Date: Sun, 14 May 2023 14:13:20 +0200 Subject: chore(ci): improve CI (#1707) * chore(ci): use pypy3.9 to get rid of useless step * chore(ci): pin setup-python to v4 --------- Co-authored-by: Stevie Gayet --- .github/workflows/ci.yaml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1f80f1f6..c85e8c9b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -14,7 +14,7 @@ jobs: uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} id: python - uses: actions/setup-python@main + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -32,7 +32,7 @@ jobs: python-version: [3.8,3.9,"3.10"] experimental: [false] include: - - python-version: pypy-3.9 + - python-version: pypy3.9 experimental: true steps: - name: Install system packages @@ -41,23 +41,21 @@ jobs: uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} id: python - uses: actions/setup-python@main + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: pip install --upgrade pip 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 ${{ env.PYTHON_VERSION }}-linux-integration-py-amqp -- -v + run: tox -v -e ${{ matrix.python-version }}-linux-integration-py-amqp -- -v - name: Run redis integration tests - run: tox -v -e ${{ env.PYTHON_VERSION }}-linux-integration-py-redis -- -v + run: tox -v -e ${{ matrix.python-version }}-linux-integration-py-redis -- -v - name: Run MongoDB integration tests - run: tox -v -e ${{ env.PYTHON_VERSION }}-linux-integration-py-mongodb -- -v + run: tox -v -e ${{ matrix.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 + if: ${{ matrix.python-version != 'pypy3.9'}} + run: tox -v -e ${{ matrix.python-version }}-linux-integration-py-kafka -- -v #################### Linters and checkers #################### lint: @@ -73,7 +71,7 @@ jobs: uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} id: python - uses: actions/setup-python@main + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install dependencies -- cgit v1.2.1