From 2d066868da462b10fb0976adc0e9ecca1c31e4c7 Mon Sep 17 00:00:00 2001 From: Radonirinaunimi Date: Mon, 6 Jul 2026 13:19:33 +0200 Subject: [PATCH 1/7] Fix LHAPDF metadata for FF set --- maintainer/download-data.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/maintainer/download-data.sh b/maintainer/download-data.sh index 621b9c3..8e18634 100644 --- a/maintainer/download-data.sh +++ b/maintainer/download-data.sh @@ -27,3 +27,6 @@ for lha in "${NEOPDF_SETS[@]}"; do # TODO: edit info file fot the FF set curl "https://lhapdfsets.web.cern.ch/current/${lha}.tar.gz" | tar xzf - --no-same-owner -C navis-cli/tests/fixtures/ done + +# Fix FF set metadata: fragfn -> timelike +sed -i 's/SetType: fragfn/SetType: timelike/g' navis-cli/tests/fixtures/NNFF10_PIsum_lo/NNFF10_PIsum_lo.info From 4d1f139b90da27b0afdba7ad52554c9e7b2625e5 Mon Sep 17 00:00:00 2001 From: Radonirinaunimi Date: Mon, 6 Jul 2026 13:25:37 +0200 Subject: [PATCH 2/7] Add versiou ci workflows --- .github/workflows/check-msrv.yml | 20 +++++++++++++++ .github/workflows/test.yaml | 44 ++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 .github/workflows/check-msrv.yml create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/check-msrv.yml b/.github/workflows/check-msrv.yml new file mode 100644 index 0000000..5456f5e --- /dev/null +++ b/.github/workflows/check-msrv.yml @@ -0,0 +1,20 @@ +name: Check MSRV + +on: [push] + +jobs: + msrv: + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + + - name: Run check + run: | + # extract the MSRV from Root `Cargo.toml` + MSRV=$(grep '^rust-version ' Cargo.toml | cut -d= -f2- | tr -d ' "') + rustup default "${MSRV}" + cargo check --all-targets diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..e56c909 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,44 @@ +name: Run the Rust tests 🦀 + +on: + push: + pull_request: + +env: + NEOPDF_DATA_PATH: ${{ github.workspace }}/navis-cli/tests/fixtures + +jobs: + test: + name: Build and test navis + runs-on: ubuntu-latest + container: + image: ghcr.io/nnpdf/lhapdf:v2 + credentials: + username: ${{ github.repository_owner }} + password: ${{ github.token }} + defaults: + run: + shell: bash --login {0} + + steps: + - uses: actions/checkout@v4 + + - name: Get data + uses: ./.github/actions/cache-data + + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + with: + components: clippy + + - name: Cache cargo registry and build artifacts + uses: Swatinem/rust-cache@v2 + + - name: Lint (clippy) + run: cargo clippy --workspace --all-targets + + - name: Build + run: cargo build --workspace --release + + - name: Run regression tests + run: cargo test --workspace --release From bdcf783912413da6e4118e1559926c2fee28b9a8 Mon Sep 17 00:00:00 2001 From: Radonirinaunimi Date: Mon, 6 Jul 2026 14:28:12 +0200 Subject: [PATCH 3/7] Make download-data.sh executable --- maintainer/download-data.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 maintainer/download-data.sh diff --git a/maintainer/download-data.sh b/maintainer/download-data.sh old mode 100644 new mode 100755 From 8f9d3a2183ccdc0ca8a62dcb8f02531ce6b00144 Mon Sep 17 00:00:00 2001 From: Radonirinaunimi Date: Mon, 6 Jul 2026 14:30:51 +0200 Subject: [PATCH 4/7] Fix extension names --- maintainer/download-data.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maintainer/download-data.sh b/maintainer/download-data.sh index 8e18634..2eeeb75 100755 --- a/maintainer/download-data.sh +++ b/maintainer/download-data.sh @@ -9,8 +9,8 @@ NEOPDF_SETS=( ) PINEAPPL_GRIDS=( - SIHP-PP-POLARIZED-STAR-2006-LO.pineappl.lz4 - SIHP-PP-UNPOLARIZED-STAR-2006-LO.pineappl.lz4 + SIHP-PP-POLARIZED-STAR-2006-LO + SIHP-PP-UNPOLARIZED-STAR-2006-LO ) # Store the data in the root of the repository @@ -19,7 +19,7 @@ test -d navis-cli/tests/fixtures/ || mkdir -p navis-cli/tests/fixtures/ # Download PineAPPL grids for grid in "${PINEAPPL_GRIDS[@]}"; do - wget --no-verbose --no-clobber -P navis-cli/tests/fixtures/ "https://data.nnpdf.science/neopdf/data/${grid}.neopdf.lz4" + wget --no-verbose --no-clobber -P navis-cli/tests/fixtures/ "https://data.nnpdf.science/neopdf/data/${grid}.pineappl.lz4" done # Download NeoPDF sets From acc524652d4dd77c3959ea388e2f3349d4e5d475 Mon Sep 17 00:00:00 2001 From: Radonirinaunimi Date: Mon, 6 Jul 2026 14:32:56 +0200 Subject: [PATCH 5/7] Fix server paths --- maintainer/download-data.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintainer/download-data.sh b/maintainer/download-data.sh index 2eeeb75..cb841f4 100755 --- a/maintainer/download-data.sh +++ b/maintainer/download-data.sh @@ -19,7 +19,7 @@ test -d navis-cli/tests/fixtures/ || mkdir -p navis-cli/tests/fixtures/ # Download PineAPPL grids for grid in "${PINEAPPL_GRIDS[@]}"; do - wget --no-verbose --no-clobber -P navis-cli/tests/fixtures/ "https://data.nnpdf.science/neopdf/data/${grid}.pineappl.lz4" + wget --no-verbose --no-clobber -P navis-cli/tests/fixtures/ "https://data.nnpdf.science/neopdf/navis/${grid}.pineappl.lz4" done # Download NeoPDF sets From 341078b7eb66fe72b5d167f94a116b8d05b96153 Mon Sep 17 00:00:00 2001 From: Radonirinaunimi Date: Mon, 6 Jul 2026 14:37:03 +0200 Subject: [PATCH 6/7] Remove LHAPDF container --- .github/workflows/test.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index e56c909..eef739d 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -11,11 +11,6 @@ jobs: test: name: Build and test navis runs-on: ubuntu-latest - container: - image: ghcr.io/nnpdf/lhapdf:v2 - credentials: - username: ${{ github.repository_owner }} - password: ${{ github.token }} defaults: run: shell: bash --login {0} From 444b2fc72691e87ca06a3eab67d9a5a5911af06e Mon Sep 17 00:00:00 2001 From: Radonirinaunimi Date: Mon, 6 Jul 2026 14:43:26 +0200 Subject: [PATCH 7/7] Minor fix --- .github/workflows/test.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index eef739d..af0ee80 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,8 +1,6 @@ name: Run the Rust tests 🦀 -on: - push: - pull_request: +on: [push] env: NEOPDF_DATA_PATH: ${{ github.workspace }}/navis-cli/tests/fixtures