pacer2influxdb/.forgejo/workflows/lint.yml

29 lines
1,016 B
YAML
Raw Normal View History

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
uses: actions/markdownlint-cli2-action@v17
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 }}."