This commit is contained in:
parent
622f79fe3b
commit
b4ea6ead51
1 changed files with 22 additions and 0 deletions
22
.gitea/workflows/lint.yml
Normal file
22
.gitea/workflows/lint.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
name: lint
|
||||
run-name: lint is launched by ${{ github.actor }}
|
||||
on: [push]
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
name: lint
|
||||
steps:
|
||||
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
|
||||
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
||||
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
- name: Create Python virtualenv
|
||||
run: |
|
||||
python -m venv .
|
||||
source bin/activate
|
||||
pip install pylint-venv pylint
|
||||
- name: Lint
|
||||
run: ./bin/pylint -d E0401 *.py
|
||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
||||
|
Loading…
Reference in a new issue