Bump urllib3 from 2.0.4 to 2.0.7 #1191
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: Tests | |
on: | |
pull_request: | |
env: | |
POETRY_VERSION: 1.5.1 | |
jobs: | |
tests: | |
name: Run Tests | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
python: ['3.9', '3.10', '3.11'] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Setup Poetry | |
run: | | |
pip install --upgrade pip setuptools wheel poetry==${{ env.POETRY_VERSION }} | |
poetry config virtualenvs.create true --local | |
poetry config virtualenvs.in-project true --local | |
poetry config installer.max-workers 1 --local | |
- uses: actions/cache@v3 | |
with: | |
path: ./.venv | |
key: venv-test-poetry-${{ env.POETRY_VERSION }}-python-${{ matrix.python }}-${{ hashFiles('poetry.lock') }}-${{ runner.os }} | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pre-commit | |
key: pre-commit-python-${{ matrix.python }}-${{ hashFiles('poetry.lock', '.pre-commit-config.yaml') }}-${{ runner.os }} | |
- name: Install dependencies | |
run: poetry install --no-interaction --without build | |
- name: Run linting | |
run: poetry run pre-commit run -a | |
- name: Run tests | |
run: poetry run pytest -v -m "not tgtg_api" --cov --cov-report=xml | |
- uses: codecov/codecov-action@v3 |