diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b233e55..64bd5b0 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,4 +1,4 @@ -name: CI +name: lint on: push: @@ -6,16 +6,19 @@ on: pull_request: branches: [ main ] - # Allows you to run this workflow manually from the Actions tab - # workflow_dispatch: + workflow_dispatch: jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - - - name: Run the awesome YouTubers linter - run: python linter/lint.py + - name: checkout # Checks the repository content + uses: actions/checkout@v2 + - name: setup python # Set up to use a specified Python version + uses: actions/setup-python@v2 + with: + python-version: 3.9.1 # Use Python version 3.9.1 + - name: execute linter # Run the linter/lint.py file + run: | + python linter/lint.py