2024-09-14 21:31:12 +02:00
|
|
|
---
|
2024-02-13 21:44:08 +01:00
|
|
|
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."
|
2024-09-14 21:31:12 +02:00
|
|
|
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Forgejo!"
|
2024-02-13 21:44:08 +01:00
|
|
|
- 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
|
2024-10-04 00:00:28 +02:00
|
|
|
- name: Lint Markdown files
|
2024-12-29 10:39:01 +01:00
|
|
|
uses: actions/markdownlint-cli2-action@v19
|
2024-10-04 00:00:28 +02:00
|
|
|
with:
|
|
|
|
globs: |
|
|
|
|
**/*.md
|
2024-02-13 21:44:08 +01:00
|
|
|
- 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
|
2024-09-14 21:31:12 +02:00
|
|
|
run: XDG_CACHE_HOME=.cache ./bin/pylint -d E0401 *.py
|
2024-02-13 21:44:08 +01:00
|
|
|
- run: echo "🍏 This job's status is ${{ job.status }}."
|