add Gitea CI
lint / lint (push) Successful in 35s Details

This commit is contained in:
n 2024-02-15 21:15:03 +01:00
parent fb726f6cca
commit 9784a9ccba
Signed by: n
GPG Key ID: 510227DD6C502CE3
1 changed files with 23 additions and 0 deletions

23
.gitea/workflows/lint.yml Normal file
View File

@ -0,0 +1,23 @@
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: |
mkdir -p .cache
python -m venv .
source bin/activate
XDG_CACHE_HOME=.cache pip install pylint-venv pylint
- name: Lint
run: XDG_CACHE_HOME=.cache ./bin/pylint -d E0401 blog/*.py
- run: echo "🍏 This job's status is ${{ job.status }}."