Skip to content

Bump urllib3 from 2.0.6 to 2.0.7 #64

Bump urllib3 from 2.0.6 to 2.0.7

Bump urllib3 from 2.0.6 to 2.0.7 #64

Workflow file for this run

# 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: Python package
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
poetry-version: [1.3.1]
os: [ubuntu-22.04, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install packages
run: poetry install # --no-dev
- name: Check formatting with black
run: |
poetry run black --diff --check .
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
poetry run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude docs,tests,mediawikiapi/__init__.py
- name: Type checking with mypy
run: |
poetry run mypy --strict .
- name: Test with pytest
run: |
poetry run pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=mediawikiapi --cov-fail-under=82