Skip to content

Bump fake-useragent from 0.1.14 to 1.2.1 #31

Bump fake-useragent from 0.1.14 to 1.2.1

Bump fake-useragent from 0.1.14 to 1.2.1 #31

Workflow file for this run

name: Pull request checks
on:
push:
branches: [master]
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest] #, macos-latest]
python-version: ["3.8"] #, "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry config virtualenvs.create false
poetry install -vv
- name: Lint with flake8
run: |
poetry run flake8 pyslowloris
- name: Test with pytest
env:
GITHUB_ACTIONS: true
run: |
poetry run pytest -v
dependabot:
needs: [build]
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: "${{ secrets.DEPENDABOT_GITHUB_TOKEN }}"