Skip to content

Commit

Permalink
chore(ci): improve CI (#1707)
Browse files Browse the repository at this point in the history
* chore(ci): use pypy3.9 to get rid of useless step

* chore(ci): pin setup-python to v4

---------

Co-authored-by: Stevie Gayet <[email protected]>
  • Loading branch information
stegayet and stegayet authored May 14, 2023
1 parent defd50f commit ae64a9f
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit ae64a9f

Please sign in to comment.