forked from fsfe/reuse-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
63 changed files
with
2,907 additions
and
2,121 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!-- | ||
Before submitting a PR, please read CONTRIBUTING.md. Non-trivial changes should | ||
be discussed in an issue before committing to a PR. | ||
Please succinctly describe your changes. | ||
--> | ||
|
||
<!-- Next, let's do a check list. Remove what doesn't apply. --> | ||
|
||
- [ ] Added a change log entry in `changelog.d/<directory>/`. | ||
- [ ] Added self to copyright blurb of touched files. | ||
- [ ] Added self to `AUTHORS.rst`. | ||
- [ ] Wrote tests. | ||
- [ ] Documented my changes in `docs/man/` or elsewhere. | ||
- [ ] My changes do not contradict | ||
[the current specification](https://reuse.software/spec/). | ||
- [x] I agree to license my contribution under the licenses indicated in the | ||
changed files. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# SPDX-FileCopyrightText: 2023 Free Software Foundation Europe e.V. | ||
# SPDX-FileCopyrightText: 2024 Skyler Grey <sky@a.starrysky.fyi> | ||
# | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
name: Test with Jujutsu | ||
|
||
# These tests are run exclusively on the main branch to reduce CPU time wasted | ||
# on every single PR that very likely does not affect Jujutsu functionality. | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- "src/reuse/**.py" | ||
- "tests/**.py" | ||
jobs: | ||
test-jujutsu: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.x | ||
- name: Install dependencies | ||
run: | | ||
pip install poetry~=1.3.0 | ||
poetry install --no-interaction --only main,test | ||
- name: Set up Jujutsu | ||
run: | | ||
cargo install cargo-binstall | ||
cargo binstall --strategies crate-meta-data jj-cli --no-confirm | ||
export PATH=~/.cargo/bin:$PATH | ||
- name: Run tests with pytest | ||
run: | | ||
poetry run pytest --cov=reuse |
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
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
Oops, something went wrong.