anyway/.gitea/workflows/backend_run_lint.yaml
Helldragon67 edf2f3af72
Some checks failed
Build and deploy the backend to staging / Build and push image (pull_request) Failing after 2m15s
Build and deploy the backend to staging / Deploy to staging (pull_request) Has been skipped
Run linting on the backend code / Build (pull_request) Successful in 27s
Run testing on the backend code / Build (pull_request) Failing after 1m39s
lint score
2024-12-10 16:39:45 +01:00

35 lines
704 B
YAML

on:
pull_request:
branches:
- main
paths:
- backend/**
name: Run linting on the backend code
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: https://gitea.com/actions/checkout@v4
- name: Install dependencies
run: |
apt-get update && apt-get install -y python3 python3-pip
pip install pipenv
- name: Install packages
run: |
ls -la
# only install dev-packages
pipenv install --categories=dev-packages
pipenv run pip freeze
working-directory: backend
- name: Run linter
run: pipenv run pylint src --fail-under=9
working-directory: backend