Skip to content

Bump pytest from 8.3.2 to 8.3.3 in the python-packages group #77

Bump pytest from 8.3.2 to 8.3.3 in the python-packages group

Bump pytest from 8.3.2 to 8.3.3 in the python-packages group #77

Workflow file for this run

name: Pull request checks
on:
push:
branches: [master]
pull_request:
permissions:
contents: write
pull-requests: write
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest] #, macos-latest]
python-version: ["3.11"] #, "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: automerge
uses: actions/github-script@0.2.0
with:
script: |
github.pullRequests.createReview({
owner: context.payload.repository.owner.login,
repo: context.payload.repository.name,
pull_number: context.payload.pull_request.number,
event: 'APPROVE'
})
github.pullRequests.merge({
owner: context.payload.repository.owner.login,
repo: context.payload.repository.name,
pull_number: context.payload.pull_request.number
})
github-token: ${{github.token}}