-
-
Notifications
You must be signed in to change notification settings - Fork 934
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
185 additions
and
102 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Linter | ||
|
||
on: [push, pull_request, workflow_dispatch] | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: blacksmith-4vcpu-ubuntu-2204 | ||
steps: | ||
|
||
- name: Checkout branch | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run pre-commit | ||
uses: pre-commit/action@v3.0.1 | ||
|
||
lint: | ||
runs-on: blacksmith-4vcpu-ubuntu-2204 | ||
strategy: | ||
matrix: | ||
python-version: ["3.12"] | ||
steps: | ||
- name: Install system packages | ||
run: sudo apt-get update && sudo apt-get install libcurl4-openssl-dev libssl-dev | ||
- name: Check out code from GitHub | ||
uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
id: python | ||
uses: useblacksmith/setup-python@v6 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: pip install --upgrade pip 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 | ||
- name: Run mypy | ||
run: tox -v -e mypy -- -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
||
name: Kombu | ||
|
||
on: | ||
push: | ||
branches: [ 'main'] | ||
paths: | ||
- '**.py' | ||
- '**.txt' | ||
- '.github/workflows/python-package.yml' | ||
- '**.toml' | ||
- "tox.ini" | ||
pull_request: | ||
branches: [ 'main' ] | ||
paths: | ||
- '**.py' | ||
- '**.txt' | ||
- '**.toml' | ||
- '.github/workflows/python-package.yml' | ||
- "tox.ini" | ||
workflow_dispatch: | ||
|
||
|
||
permissions: | ||
contents: read # to fetch code (actions/checkout) | ||
|
||
jobs: | ||
Unit: | ||
|
||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.10'] | ||
os: ["blacksmith-4vcpu-ubuntu-2204"] | ||
|
||
steps: | ||
- name: Install apt packages | ||
if: startsWith(matrix.os, 'blacksmith-4vcpu-ubuntu') | ||
run: sudo apt-get update && sudo apt-get install libcurl4-openssl-dev libssl-dev | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: useblacksmith/setup-python@v6 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
allow-prereleases: true | ||
cache: 'pip' | ||
cache-dependency-path: '**/setup.py' | ||
|
||
- name: Install tox | ||
run: python -m pip install --upgrade pip wheel tox tox-docker | ||
- name: > | ||
Run tox for | ||
"${{ matrix.python-version }}-unit" | ||
timeout-minutes: 5 | ||
run: | | ||
tox --verbose --verbose | ||
- uses: codecov/codecov-action@v4 | ||
with: | ||
flags: unittests # optional | ||
fail_ci_if_error: false # optional (default = false) | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
verbose: true # optional (default = false) | ||
|
||
Integration: | ||
needs: | ||
- Unit | ||
if: needs.Unit.result == 'success' | ||
|
||
runs-on: blacksmith-4vcpu-ubuntu-2204 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] | ||
toxenv: [ | ||
'py-amqp', | ||
'py-redis', | ||
'py-mongodb', | ||
'py-kafka' | ||
] | ||
experimental: [false] | ||
include: | ||
- python-version: pypy3.10 | ||
experimental: true | ||
|
||
steps: | ||
- name: Install apt packages | ||
run: sudo apt-get update && sudo apt-get install libcurl4-openssl-dev libssl-dev | ||
|
||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: useblacksmith/setup-python@v6 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
allow-prereleases: true | ||
cache: 'pip' | ||
cache-dependency-path: '**/setup.py' | ||
- name: Install tox | ||
run: python -m pip install --upgrade pip wheel tox tox-docker | ||
- name: > | ||
Run tox for | ||
"${{ matrix.python-version }}-linux-integration-${{ matrix.toxenv }}" | ||
timeout-minutes: 30 | ||
run: > | ||
tox --verbose --verbose -e | ||
"${{ matrix.python-version }}-linux-integration-${{ matrix.toxenv }}" -vv | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,3 +36,6 @@ venv/ | |
env | ||
.eggs | ||
.python-version | ||
.coverage.* | ||
control/ | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters