forked from AlmaLinux/leapp-repository
-
Notifications
You must be signed in to change notification settings - Fork 7
36 lines (31 loc) · 1.1 KB
/
lint-cloudlinux.yml
File metadata and controls
36 lines (31 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Lint (cloudlinux)
# CloudLinux fork uses the `cloudlinux` branch as trunk; the inherited
# upstream workflows (unit-tests.yml, codespell.yml, etc.) only fire on
# `master` and so do not run on this fork. This narrow workflow guards
# the cloudlinux branch against the most common regression we have hit:
# stray non-ASCII bytes in Python source (em-dashes, smart quotes,
# ellipsis from copy/paste, leftover BOMs).
#
# The check is just `make lint-non-ascii`, which delegates to
# utils/check-non-ascii.py. That same target is also invoked as a
# prerequisite of `make lint`, so local developers get the identical
# rule when they run the full lint locally.
#
# Broader fixes (running the full upstream test+lint matrix on cloudlinux
# PRs) are tracked separately.
on:
pull_request:
branches: [cloudlinux]
push:
branches: [cloudlinux]
permissions:
contents: read
jobs:
lint-non-ascii:
name: Reject undeclared non-ASCII in Python source
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: make lint-non-ascii
run: make lint-non-ascii