summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorAsif Saif Uddin <auvipy@gmail.com>2021-04-13 10:11:26 +0600
committerAsif Saif Uddin <auvipy@gmail.com>2021-04-13 10:20:42 +0600
commitfd4dfa475d75a6e5151bd4ff290fac41bb7eb872 (patch)
treedd0f7eafee0dc8114a6f8d33453b9611dbf82442 /.github
parentc7ba31d4fd84d3d60f798bd15dd9c6ba42290654 (diff)
downloadkombu-fd4dfa475d75a6e5151bd4ff290fac41bb7eb872.tar.gz
re order CI jobs to make lint the last
it was decided long ago and it let the unit and integrations tests run fast for faster feedback loop
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yaml47
1 files changed, 24 insertions, 23 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index df924ab4..7ba42dde 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -1,12 +1,12 @@
name: CI
on: [pull_request, push]
jobs:
- #################### Linters and checkers ####################
- lint:
+ #################### Unittests ####################
+ unittest:
runs-on: ubuntu-latest
strategy:
matrix:
- python-version: [3.8]
+ python-version: [3.6,3.7,3.8]
steps:
- name: Install system packages
run: sudo apt update && sudo apt-get install libcurl4-openssl-dev libssl-dev
@@ -19,19 +19,15 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install --upgrade pip setuptools wheel tox tox-docker
- - name: Run flake8
- run: tox -v -e flake8 -- -v
- - name: Run pydocstyle
- run: tox -v -e pydocstyle -- -v
- - name: Run apicheck
- run: tox -v -e apicheck -- -v
- #################### Unittests ####################
- unittest:
- needs: lint
+ - name: Run unittest
+ run: tox -v -e ${{ matrix.python-version }}-linux-unit -- -v
+ #################### Integration tests ####################
+ integration:
+ needs: [unittest]
runs-on: ubuntu-latest
strategy:
matrix:
- python-version: [3.6,3.7,3.8]
+ python-version: [3.6,3.7,3.8,pypy3]
steps:
- name: Install system packages
run: sudo apt update && sudo apt-get install libcurl4-openssl-dev libssl-dev
@@ -44,15 +40,18 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install --upgrade pip setuptools wheel tox tox-docker
- - name: Run unittest
- run: tox -v -e ${{ matrix.python-version }}-linux-unit -- -v
- #################### Integration tests ####################
- integration:
- needs: [lint, unittest]
+ - name: Run AMQP integration tests
+ run: tox -v -e ${{ matrix.python-version }}-linux-integration-py-amqp -- -v
+ - name: Run redis integration tests
+ run: tox -v -e ${{ matrix.python-version }}-linux-integration-py-redis -- -v
+
+ #################### Linters and checkers ####################
+ lint:
+ needs: [unittest, integration]
runs-on: ubuntu-latest
strategy:
matrix:
- python-version: [3.6,3.7,3.8,pypy3]
+ python-version: [3.8]
steps:
- name: Install system packages
run: sudo apt update && sudo apt-get install libcurl4-openssl-dev libssl-dev
@@ -65,7 +64,9 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install --upgrade pip setuptools wheel tox tox-docker
- - name: Run AMQP integration tests
- run: tox -v -e ${{ matrix.python-version }}-linux-integration-py-amqp -- -v
- - name: Run redis integration tests
- run: tox -v -e ${{ matrix.python-version }}-linux-integration-py-redis -- -v
+ - name: Run flake8
+ run: tox -v -e flake8 -- -v
+ - name: Run pydocstyle
+ run: tox -v -e pydocstyle -- -v
+ - name: Run apicheck
+ run: tox -v -e apicheck -- -v