Bump urllib3 from 2.2.1 to 2.2.2 #840
Workflow file for this run
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
name: basic test | |
on: | |
push: | |
tags: | |
- ".*" | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
- feature-2.0 | |
jobs: | |
simple-checks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- uses: pre-commit/[email protected] | |
unit-tests: | |
runs-on: ubuntu-latest | |
needs: simple-checks | |
env: | |
TOXENV: py3 | |
TOXCFG: tox.ini | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
env: | |
cache-name: cache-${TOXENV} | |
with: | |
path: .tox | |
key: ${{ runner.os }}-tox-${{ env.cache-name }}-${{ hashFiles('pyproject.toml', 'requirements.in') }} | |
- uses: actions/cache@v4 | |
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@v5 | |
with: | |
python-version: "3.11" | |
- name: install deps | |
run: | | |
pip install uv | |
uv pip install --system -r requirements.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 | |
TOXCFG: tox-integration.ini | |
- TOXENV: py3-hooks | |
TOXCFG: tox-integration.ini | |
- TOXENV: py3-advanced | |
TOXCFG: tox-integration.ini | |
- TOXENV: py3-grpc | |
TOXCFG: tox-integration.ini | |
services: | |
docker: | |
image: docker | |
env: | |
TOXENV: ${{ matrix.TOXENV }} | |
TOXCFG: ${{ matrix.TOXCFG }} | |
steps: | |
- uses: docker/setup-buildx-action@v3 | |
continue-on-error: true | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
env: | |
cache-name: cache-${{ matrix.TOXENV }} | |
with: | |
path: .tox | |
key: ${{ runner.os }}-tox-${{ env.cache-name }}-${{ hashFiles('pyproject.toml', 'requirements.in') }} | |
- uses: actions/cache@v4 | |
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@v5 | |
with: | |
python-version: "3.11" | |
- name: Install Protoc | |
if: ${{ contains(matrix.TOXENV, 'grpc') }} | |
uses: arduino/setup-protoc@v3 | |
with: | |
version: "23.x" | |
- name: install deps | |
run: | | |
pip install uv | |
uv pip install --system -r requirements.txt | |
- name: tox | |
run: | | |
tox -c ${TOXCFG} -e ${TOXENV} |