Reuse Lint #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
- 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 |