-
Notifications
You must be signed in to change notification settings - Fork 150
68 lines (63 loc) · 2.02 KB
/
third_party_lint.yaml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# SPDX-FileCopyrightText: 2023 DB Systel GmbH
# SPDX-FileCopyrightText: 2023 Carmen Bianca BAKKER <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-or-later
# Build reuse-tool and lint 3rd party repositories for which we know that they
# are reliably REUSE compliant, rather complex, use several annotation
# strategies, and are quite popular. This shall prevent that we introduce
# unforeseen and unintended breaking changes.
name: Lint 3rd party repositories
on:
push:
branches:
- main
pull_request:
jobs:
third-party-lint:
runs-on: ubuntu-24.04
strategy:
# do not abort the whole test job if one combination in the matrix fails
fail-fast: false
matrix:
repo:
[
"https://github.com/fsfe/reuse-example",
"https://github.com/curl/curl",
]
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
pip install poetry~=1.3.0
poetry install --no-interaction
# Clone and lint repositories
- name: Clone and lint repositories
run:
poetry run python .github/workflows/third_party_lint.py --json ${{
matrix.repo }}
third-party-lint-expect-failure:
runs-on: ubuntu-24.04
strategy:
# do not abort the whole test job if one combination in the matrix fails
fail-fast: false
matrix:
repo: ["https://github.com/spdx/license-list-XML"]
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
pip install poetry~=1.3.0
poetry install --no-interaction
# Clone and lint repositories
- name: Clone and lint repositories
run:
poetry run python .github/workflows/third_party_lint.py --json
--expect-failure ${{ matrix.repo }}