Use @main for checkout action. #21
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: python lint | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'cgiexecute' | |
- 'mediastream' | |
- 'screenshot' | |
- 'setbackground' | |
- 'setringtone' | |
- 'xmlinfo' | |
- '.pylintrc' | |
- '.github/workflows/pylint.yml' | |
pull_request: | |
branches: | |
- master | |
paths: | |
- 'cgiexecute' | |
- 'mediastream' | |
- 'screenshot' | |
- 'setbackground' | |
- 'setringtone' | |
- 'xmlinfo' | |
- '.pylintrc' | |
- '.github/workflows/pylint.yml' | |
workflow_dispatch: | |
jobs: | |
lint: | |
name: Run python linter | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@main | |
- name: Install packages | |
run: | | |
sudo apt install pylint python3-lxml python3-requests python3-gi python3-gst-1.0 | |
- name: Run pylint | |
run: | | |
pylint cgiexecute mediastream screenshot setbackground setringtone xmlinfo |