-
Notifications
You must be signed in to change notification settings - Fork 6
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
1 parent
fb3f384
commit c1c0093
Showing
1 changed file
with
30 additions
and
0 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,30 @@ | ||
# A CI script with github workflow to test the new commondata | ||
name: Test new commondata | ||
|
||
on: [push] | ||
|
||
jobs: | ||
test-commondata: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-tags: true | ||
fetch-depth: 0 | ||
- name: Install NNPDF data package 🐍 | ||
run: pip install -e ./nnpdf_data/ | ||
- name: Run the filters 📦 | ||
shell: bash -l {0} | ||
run: | | ||
here=$PWD | ||
readarray -d '' array < <(find ./nnpdf_data/nnpdf_data/new_commondata -name "filter.py" -print0) | ||
for datname in "${array[@]}"; do dirpath=${datname%/*}; cd $dirpath; python filter.py; cd $here; done | ||
- name: Check for modified files 🛎️ | ||
uses: tj-actions/verify-changed-files@v20 | ||
id: verify-changed-files | ||
- name: List all changed tracked and untracked files 🛎️ | ||
env: | ||
CHANGED_FILES: ${{ steps.verify-changed-files.outputs.changed_files }} | ||
run: | | ||
echo "Changed files: $CHANGED_FILES" |