Skip to content

Update dependency PyGithub to >=2.5,<2.6 #619

Update dependency PyGithub to >=2.5,<2.6

Update dependency PyGithub to >=2.5,<2.6 #619

Workflow file for this run

name: Tests
on:
pull_request:
jobs:
unit-tests:
uses: canonical/operator-workflows/.github/workflows/test.yaml@main
secrets: inherit
with:
self-hosted-runner: true
self-hosted-runner-label: "edge"
look-for-outdated-code:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt update && sudo apt install python3-pip
pip3 install pyupgrade refurb
- name: Check for any code improvements
run: |
PYTHON_FILES=$(find . -name '*.py')
pyupgrade --py311-plus $PYTHON_FILES
refurb $PYTHON_FILES