Bump urllib3 from 1.26.15 to 1.26.18 (#100) #154
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: Lint and test | |
on: | |
pull_request: | |
branches: ["*"] | |
push: | |
branches: ["main"] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.12", "pypy3.10"] | |
env: | |
FORCE_COLOR: 1 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install poetry | |
run: pipx install poetry | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: poetry | |
- name: Install dependencies (cpython) | |
if: ${{ matrix.python-version != 'pypy3.10' }} | |
run: poetry install --no-interaction --no-root --with dev,examples --all-extras | |
- name: Install dependencies (pypy) | |
if: ${{ matrix.python-version == 'pypy3.10' }} | |
run: poetry install --no-interaction --no-root --with dev,examples --extras=exporter-otlp-proto-http | |
- name: Check code formatting | |
run: poetry run black . | |
- name: Lint lib code | |
run: poetry run mypy src --enable-incomplete-feature=Unpack | |
- name: Lint lib examples | |
run: poetry run mypy examples --enable-incomplete-feature=Unpack | |
- name: Run tests | |
run: poetry run pytest -n auto |