Specified Python version

This commit is contained in:
José De Freitas 2021-02-05 13:55:58 -05:00 committed by GitHub
parent 7ec5f91279
commit 33da91dc55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
name: CI name: lint
on: on:
push: push:
@ -6,16 +6,19 @@ on:
pull_request: pull_request:
branches: [ main ] branches: [ main ]
# Allows you to run this workflow manually from the Actions tab workflow_dispatch:
# workflow_dispatch:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - name: checkout # Checks the repository content
- uses: actions/setup-python@v2 uses: actions/checkout@v2
- name: setup python # Set up to use a specified Python version
- name: Run the awesome YouTubers linter uses: actions/setup-python@v2
run: python linter/lint.py 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