Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Github Action to detect file changes instead of custom Python code #1322

Merged
merged 3 commits into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
317 changes: 0 additions & 317 deletions .github/python/find_changed_files.py

This file was deleted.

33 changes: 11 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,34 +18,23 @@ jobs:
name: Check for changes
runs-on: ubuntu-latest
outputs:
nf_test_files: ${{ steps.list.outputs.nf_test_files }}
nf_test_files: ${{ steps.list.outputs.components }}
steps:
- uses: actions/setup-python@v4
with:
python-version: "3.11"
architecture: "x64"
- uses: actions/checkout@v4
- uses: actions/checkout@v3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reason for the reversion?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bugger: #1323

with:
fetch-depth: 0

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install gitpython pyyaml

- name: list nf_test_files
- name: List nf-test files
id: list
uses: adamrtalbot/detect-nf-test-changes@v0.0.2
with:
head: ${{ github.sha }}
base: origin/${{ github.base_ref }}
include: .github/include.yaml

- name: print list of nf-test files
run: |
echo nf_test_files=$(python \
.github/python/find_changed_files.py \
-t pipeline workflow process \
--head_ref ${{ github.sha }} \
--base_ref origin/${{ github.base_ref }} \
) >> $GITHUB_OUTPUT

- name: debug
run: |
echo ${{ steps.list.outputs.nf_test_files }}
echo ${{ steps.list.outputs.components }}

test:
name: ${{ matrix.nf_test_files }} ${{ matrix.profile }} NF-${{ matrix.NXF_VER }}
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ Thank you to everyone else that has contributed by reporting bugs, enhancements
- [PR #1310](https://github.com/nf-core/rnaseq/pull/1310) - Reinstate pseudoalignment subworkflow config
- [PR #1309](https://github.com/nf-core/rnaseq/pull/1309) - Document FASTP sampling
- [PR #1312](https://github.com/nf-core/rnaseq/pull/1312) - Fix issues with unzipping of GTF/ GFF files without absolute paths
- [PR #1322](https://github.com/nf-core/rnaseq/pull/1322) - Use pre-built Github Action to detect nf-test changes

### Parameters

Expand Down
Loading