Skip to content

Merge pull request #1103 from carmenbianca/release-5.0.2 #29

Merge pull request #1103 from carmenbianca/release-5.0.2

Merge pull request #1103 from carmenbianca/release-5.0.2 #29

Workflow file for this run

# 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-24.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