-
-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into grpc-support
- Loading branch information
Showing
68 changed files
with
2,546 additions
and
1,304 deletions.
There are no files selected for viewing
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 @@ | ||
github: michaelboulton |
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 |
---|---|---|
|
@@ -20,18 +20,11 @@ jobs: | |
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.8" | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml', 'requirements.in') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
python-version: "3.11" | ||
|
||
- uses: pre-commit/[email protected] | ||
|
||
test: | ||
unit-tests: | ||
runs-on: ubuntu-latest | ||
needs: simple-checks | ||
|
||
|
@@ -45,6 +38,49 @@ jobs: | |
- TOXENV: py3 | ||
TOXCFG: tox.ini | ||
|
||
env: | ||
TOXENV: ${{ matrix.TOXENV }} | ||
TOXCFG: ${{ matrix.TOXCFG }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/cache@v3 | ||
env: | ||
cache-name: cache-${{ matrix.TOXENV }} | ||
with: | ||
path: .tox | ||
key: ${{ runner.os }}-tox-${{ env.cache-name }}-${{ hashFiles('pyproject.toml', 'requirements.in') }} | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml', 'requirements.in') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: install deps | ||
run: | | ||
pip install tox -c constraints.txt | ||
- name: tox | ||
run: | | ||
tox -c ${TOXCFG} -e ${TOXENV} | ||
integration-tests: | ||
runs-on: ubuntu-latest | ||
needs: unit-tests | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
# integration tests | ||
- TOXENV: py3-generic | ||
TOXCFG: tox-integration.ini | ||
- TOXENV: py3-mqtt | ||
|
@@ -65,14 +101,17 @@ jobs: | |
TOXCFG: ${{ matrix.TOXCFG }} | ||
|
||
steps: | ||
- uses: jpribyl/[email protected] | ||
continue-on-error: true | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/cache@v3 | ||
env: | ||
cache-name: cache-${{ matrix.TOXENV }} | ||
with: | ||
path: .tox | ||
key: ${{ runner.os }}-tox-${{ env.cache-name }}-${{ hashFiles('tox.ini', 'tox-integration.ini', 'pyproject.toml', 'requirements.in') }} | ||
key: ${{ runner.os }}-tox-${{ env.cache-name }}-${{ hashFiles('pyproject.toml', 'requirements.in') }} | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
|
@@ -81,18 +120,15 @@ jobs: | |
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- uses: jpribyl/[email protected] | ||
continue-on-error: true | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.8" | ||
python-version: "3.11" | ||
|
||
- name: install deps | ||
run: | | ||
pip install tox-travis -c constraints.txt | ||
pip install tox -c constraints.txt | ||
- name: tox | ||
run: | | ||
tox -c ${TOXCFG} | ||
tox -c ${TOXCFG} -e ${TOXENV} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Read the Docs configuration file for Sphinx projects | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Set the OS, Python version and other tools you might need | ||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.11" | ||
|
||
# Build documentation in the "docs/" directory with Sphinx | ||
sphinx: | ||
configuration: docs/source/conf.py | ||
|
||
python: | ||
install: | ||
- requirements: requirements.txt |
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
Oops, something went wrong.