Skip to content

Commit

Permalink
Merge pull request #201 from evelikov/spdx-and-reuse
Browse files Browse the repository at this point in the history
Add the final SPDX identifiers, alongside reuse-lint CI workflow
  • Loading branch information
gregkh authored Sep 30, 2024
2 parents 86373ef + 7779d07 commit 8ed86f6
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# SPDX-FileCopyrightText: 2024 Emil Velikov <[email protected]>
# SPDX-FileCopyrightText: 2024 Lucas De Marchi <[email protected]>
#
# SPDX-License-Identifier: LGPL-2.1-or-later

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# SPDX-FileCopyrightText: 2024 Emil Velikov <[email protected]>
# SPDX-FileCopyrightText: 2024 Lucas De Marchi <[email protected]>
#
# SPDX-License-Identifier: LGPL-2.1-or-later

name: Build and Test

on:
Expand Down
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 8ed86f6

Please sign in to comment.