-
Notifications
You must be signed in to change notification settings - Fork 21
51 lines (44 loc) · 1.23 KB
/
checks.yml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Checks
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
licenses:
name: "Licenses"
strategy:
fail-fast: true
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Validate license (pull request)
if: github.event_name == 'pull_request'
working-directory: ${{github.workspace}}
run: |
git diff --name-only ${{ github.event.base_ref }} ${{ github.event.head_ref }} \
| sed -E 's/\.license$//' \
| sort -u \
| xargs -d '\n' ls -1d 2>/dev/null \
| xargs -d '\n' python3 -m pipx run reuse lint-file --
- name: Validate licenses (push)
if: github.event_name == 'push'
working-directory: ${{github.workspace}}
run: |
python3 -m pipx run reuse lint
unicode:
name: "Unicode"
strategy:
fail-fast: true
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Validate Unicode
working-directory: ${{github.workspace}}
run: |
python3 checks/checkunicode.py