Merge pull request #60 from python-discord/bump-various-versions #193
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 Python code | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
name: "Lint code" | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- name: Checkout branch | |
uses: actions/checkout@v3 | |
- name: Install Python Dependencies | |
uses: HassanAbouelela/actions/setup-python@setup-python_v1.4.1 | |
with: | |
python_version: '3.10' | |
- name: Lint code with ruff | |
run: ruff check --format=github . |