Skip to content

Commit

Permalink
ci: add reuse lint stage
Browse files Browse the repository at this point in the history
Add a workflow to check for issues reported by reuse-tool. The version
installed picked from usbutils.spdx so we get consistent results.

Signed-off-by: Emil Velikov <[email protected]>
  • Loading branch information
evelikov committed Sep 30, 2024
1 parent 7ba5d15 commit 68a3d2a
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/reuse.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# SPDX-FileCopyrightText: 2024 Emil Velikov <[email protected]>
#
# SPDX-License-Identifier: LGPL-2.1-or-later

name: Reuse Lint

on:
push:
branches: [master, ci-test]
pull_request:
branches: [master]
schedule:
- cron: "30 2 * * 0"

permissions:
contents: read

jobs:
reuse:
runs-on: ubuntu-latest
steps:
- name: Checkout the project
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Setup Python
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: '3.10'

- name: Install dependencies
run: |
_version=$(grep -o "reuse-.*" usbutils.spdx | cut -f2 -d'-')
pip install reuse~=$_version
- name: Check SPDX identifiers
run: reuse lint

0 comments on commit 68a3d2a

Please sign in to comment.