Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Github Actions CI #1309

Merged
merged 3 commits into from
Mar 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: CI
on: [pull_request, push]
jobs:
#################### Linters and checkers ####################
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
steps:
- name: Install system packages
run: sudo apt-get install libcurl4-openssl-dev libssl-dev
- name: Check out code from GitHub
uses: actions/checkout@v2.3.4
- name: Set up Python ${{ matrix.python-version }}
id: python
uses: actions/setup-python@v2.2.1
with:
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 py-flake8 -- -v
- name: Run pydocstyle
run: tox -v -e py-pydocstyle -- -v
- name: Run apicheck
run: tox -v -e py-apicheck -- -v
#################### Unittests ####################
unittest:
needs: lint
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6,3.7,3.8]
steps:
- name: Install system packages
run: sudo apt-get install libcurl4-openssl-dev libssl-dev
- name: Check out code from GitHub
uses: actions/checkout@v2.3.4
- name: Set up Python ${{ matrix.python-version }}
id: python
uses: actions/setup-python@v2.2.1
with:
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]
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6,3.7,3.8,pypy3]
steps:
- name: Install system packages
run: sudo apt-get install libcurl4-openssl-dev libssl-dev
- name: Check out code from GitHub
uses: actions/checkout@v2.3.4
- name: Set up Python ${{ matrix.python-version }}
id: python
uses: actions/setup-python@v2.2.1
with:
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
10 changes: 5 additions & 5 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,29 @@ environment:
WITH_COMPILER: "cmd /E:ON /V:ON /C .\\extra\\appveyor\\run_with_compiler.cmd"

matrix:
- TOXENV: "3.6"
- TOXENV: "3.6-windows-unit"
TOX_APPVEYOR_X64: 0
PYTHON_VERSION: "3.6.x"
PYTHON_ARCH: "32"

- TOXENV: "3.7-windows"
- TOXENV: "3.7-windows-unit"
TOX_APPVEYOR_X64: 0
PYTHON_VERSION: "3.7.x"
PYTHON_ARCH: "32"

- TOXENV: "3.6"
- TOXENV: "3.6-windows-unit"
TOX_APPVEYOR_X64: 1
PYTHON_VERSION: "3.6.x"
PYTHON_ARCH: "64"
WINDOWS_SDK_VERSION: "v7.1"

- TOXENV: "3.7-windows"
- TOXENV: "3.7-windows-unit"
TOX_APPVEYOR_X64: 1
PYTHON_VERSION: "3.7.x"
PYTHON_ARCH: "64"
WINDOWS_SDK_VERSION: "v7.1"

- TOXENV: "3.8-windows"
- TOXENV: "3.8-windows-unit"
TOX_APPVEYOR_X64: 1
PYTHON_VERSION: "3.8"
PYTHON_ARCH: "64"
Expand Down
1 change: 0 additions & 1 deletion requirements/test-ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ codecov
-r extras/azurestoragequeues.txt
-r extras/sqs.txt
-r extras/consul.txt
-r extras/librabbitmq.txt
-r extras/zookeeper.txt
-r extras/brotli.txt
-r extras/zstd.txt
Expand Down
12 changes: 6 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[tox]
envlist =
{pypy3,3.6,3.7-{linux,windows},3.8-{linux,windows}}-unit
{pypy3,3.6,3.7-{linux,windows},3.8-{linux,windows}}-integration-py-amqp
{pypy3,3.6,3.7-{linux,windows},3.8-{linux,windows}}-integration-redis
{pypy3,3.6,3.7,3.8}-unit
{pypy3,3.6,3.7,3.8}-linux-integration-py-amqp
{pypy3,3.6,3.7,3.8}-linux-integration-redis
flake8
flakeplus
apicheck
Expand All @@ -17,10 +17,10 @@ passenv =
DISTUTILS_USE_SDK
deps=
-r{toxinidir}/requirements/dev.txt
apicheck,pypy3,3.6,3.7-linux,3.7-windows,3.8-linux,3.8-windows: -r{toxinidir}/requirements/default.txt
apicheck,pypy3,3.6,3.7-linux,3.7-windows,3.8-linux,3.8-windows: -r{toxinidir}/requirements/test.txt
apicheck,pypy3,3.6,3.7,3.8: -r{toxinidir}/requirements/default.txt
apicheck,pypy3,3.6,3.7,3.8: -r{toxinidir}/requirements/test.txt
apicheck,pypy3,3.6,3.7-linux,3.8-linux: -r{toxinidir}/requirements/test-ci.txt
3.7-windows: -r{toxinidir}/requirements/test-ci-windows.txt
3.7-windows,3.8-windows: -r{toxinidir}/requirements/test-ci-windows.txt
apicheck,linkcheck: -r{toxinidir}/requirements/docs.txt
flake8,flakeplus,pydocstyle: -r{toxinidir}/requirements/pkgutils.txt

Expand Down