-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'fk-refactor' into hyperopt_loss_on_fk-refactor
- Loading branch information
Showing
4,702 changed files
with
3,871,008 additions
and
54,476 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
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,46 @@ | ||
name: Test the python installation | ||
|
||
on: [push] | ||
|
||
env: | ||
# https://keras.io/getting_started/faq/#how-can-i-obtain-reproducible-results-using-keras-during-development | ||
PYTHONHASHSEED: "0" | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: ["3.11"] | ||
include: | ||
- os: ubuntu-latest | ||
CONDA_OS: linux-64 | ||
fail-fast: false | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
NETRC_FILE: ${{ secrets.NETRC_FILE }} | ||
NNPDF_SSH_KEY: ${{ secrets.NNPDF_SSH_KEY }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Setup conda and install LHAPDF and pandoc | ||
shell: bash -l {0} | ||
run: | | ||
echo "$NETRC_FILE" | base64 --decode > ~/.netrc | ||
conda install -n base conda-libmamba-solver | ||
conda config --set solver libmamba | ||
conda config --append channels conda-forge | ||
conda config --set show_channel_urls true | ||
conda install lhapdf pandoc | ||
- name: Install nnpdf with testing and qed extras | ||
shell: bash -l {0} | ||
run: | | ||
conda activate test | ||
pip install .[qed,tests] | ||
- name: Test n3fit and validphys | ||
shell: bash -l {0} | ||
run: | | ||
conda activate test | ||
pytest --pyargs --mpl validphys n3fit |
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,64 @@ | ||
name: Redo regressions | ||
|
||
# start job only for PRs when a label is added. | ||
on: | ||
pull_request: | ||
types: [labeled] | ||
|
||
# some general variables | ||
env: | ||
# https://keras.io/getting_started/faq/#how-can-i-obtain-reproducible-results-using-keras-during-development | ||
PYTHONHASHSEED: "0" | ||
|
||
jobs: | ||
build: | ||
if: contains(github.event.pull_request.labels.*.name, 'redo-regressions') | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: ["3.11"] | ||
include: | ||
- os: ubuntu-latest | ||
CONDA_OS: linux-64 | ||
fail-fast: false | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
NETRC_FILE: ${{ secrets.NETRC_FILE }} | ||
NNPDF_SSH_KEY: ${{ secrets.NNPDF_SSH_KEY }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
|
||
- uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
use-mamba: true | ||
auto-update-conda: true | ||
activate-environment: test | ||
- name: Setup conda and install LHAPDF and pandoc | ||
shell: bash -l {0} | ||
run: | | ||
echo "$NETRC_FILE" | base64 --decode > ~/.netrc | ||
conda config --remove channels defaults | ||
conda config --append channels conda-forge | ||
conda config --prepend channels https://packages.nnpdf.science/public | ||
conda config --set show_channel_urls true | ||
conda install lhapdf pandoc | ||
- name: Install nnpdf with testing and qed extras | ||
shell: bash -l {0} | ||
run: | | ||
pip install .[qed,tests] | ||
- name: Regenerate regressions | ||
shell: bash -l {0} | ||
run: | | ||
pytest extra_tests/regression_checks.py --regenerate True | ||
- name: Commit | ||
shell: bash -l {0} | ||
run: | | ||
git config user.name "Redo regressions bot" | ||
git add extra_tests/regression_fits/* | ||
git status | ||
git commit -m "Automatically regenerated regressions from PR ${{ github.event.number }}, branch ${{ github.event.pull_request.head.ref }}." | ||
git push origin "${{ github.event.pull_request.head.ref }}" |
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,47 @@ | ||
name: Collection of regression tests | ||
|
||
on: [push] | ||
|
||
env: | ||
# https://keras.io/getting_started/faq/#how-can-i-obtain-reproducible-results-using-keras-during-development | ||
PYTHONHASHSEED: "0" | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: ["3.11"] | ||
include: | ||
- os: ubuntu-latest | ||
CONDA_OS: linux-64 | ||
fail-fast: false | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
NETRC_FILE: ${{ secrets.NETRC_FILE }} | ||
NNPDF_SSH_KEY: ${{ secrets.NNPDF_SSH_KEY }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
use-mamba: true | ||
auto-update-conda: true | ||
activate-environment: test | ||
- name: Setup conda and install LHAPDF and pandoc | ||
shell: bash -l {0} | ||
run: | | ||
echo "$NETRC_FILE" | base64 --decode > ~/.netrc | ||
conda config --remove channels defaults | ||
conda config --append channels conda-forge | ||
conda config --prepend channels https://packages.nnpdf.science/public | ||
conda config --set show_channel_urls true | ||
conda install lhapdf pandoc | ||
- name: Install nnpdf with testing and qed extras | ||
shell: bash -l {0} | ||
run: | | ||
pip install .[qed,tests] | ||
- name: Test n3fit and validphys | ||
shell: bash -l {0} | ||
run: | | ||
pytest extra_tests/regression_checks.py |
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 |
---|---|---|
|
@@ -4,9 +4,10 @@ name: Tests | |
on: [push] | ||
|
||
concurrency: | ||
group: ${{ github.ref }} | ||
group: ${{ github.head_ref || github.ref }} | ||
cancel-in-progress: true | ||
|
||
|
||
jobs: | ||
build: | ||
strategy: | ||
|
@@ -23,40 +24,52 @@ jobs: | |
env: | ||
NETRC_FILE: ${{ secrets.NETRC_FILE }} | ||
NNPDF_SSH_KEY: ${{ secrets.NNPDF_SSH_KEY }} | ||
PYTHONHASHSEED: "0" | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: conda-incubator/setup-miniconda@v2 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-tags: true | ||
fetch-depth: 0 | ||
- uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
use-mamba: true | ||
auto-update-conda: true | ||
activate-environment: test | ||
- name: Install macOS SDK | ||
if: startsWith(matrix.os, 'macOS') | ||
shell: bash -l {0} | ||
run: | | ||
conda activate test | ||
curl -L -O https://data.nnpdf.science/MacOSX10.9.sdk.tar.xz | ||
tar xfz MacOSX10.9.sdk.tar.xz -C $CONDA_PREFIX | ||
- name: Setup conda and install conda-build | ||
- name: Setup conda | ||
shell: bash -l {0} | ||
run: | | ||
echo "$NETRC_FILE" | base64 --decode > ~/.netrc | ||
conda install -n base conda-libmamba-solver | ||
conda config --set solver libmamba | ||
conda config --remove channels defaults | ||
conda config --append channels conda-forge | ||
conda config --prepend channels https://packages.nnpdf.science/public | ||
conda config --set show_channel_urls true | ||
conda activate test | ||
- name: Install boa in Linux | ||
if: startsWith(matrix.os, 'ubuntu') | ||
shell: bash -l {0} | ||
run: | | ||
conda install boa --yes | ||
- name: Build recipe and run tests on linux | ||
if: startsWith(matrix.os, 'ubuntu') | ||
shell: bash -l {0} | ||
run: | | ||
conda activate test | ||
conda mambabuild -q conda-recipe | ||
- name: Extra setup settings for macOS and install boa | ||
if: startsWith(matrix.os, 'macOS') | ||
shell: bash -l {0} | ||
run: | | ||
conda config --prepend channels defaults | ||
conda install boa conda-build==3.28 --yes | ||
- name: Build recipe and run tests on macOS | ||
if: startsWith(matrix.os, 'macOS') | ||
shell: bash -l {0} | ||
run: | | ||
conda activate test | ||
export CONDA_BUILD_SYSROOT=$CONDA_PREFIX/MacOSX10.9.sdk | ||
conda build -q conda-recipe | ||
- name: Upload conda package to NNPDF server | ||
|
@@ -65,7 +78,6 @@ jobs: | |
run: | | ||
KEY=$( mktemp ) | ||
echo "$NNPDF_SSH_KEY" | base64 --decode > "$KEY" | ||
conda activate test | ||
scp -i "$KEY" -o StrictHostKeyChecking=no\ | ||
$CONDA_PREFIX/conda-bld/${{matrix.CONDA_OS}}/*.tar.bz2 \ | ||
[email protected]:~/packages/conda/${{matrix.CONDA_OS}} | ||
|
@@ -75,7 +87,6 @@ jobs: | |
run: | | ||
KEY=$( mktemp ) | ||
echo "$NNPDF_SSH_KEY" | base64 --decode > "$KEY" | ||
conda activate test | ||
conda install nnpdf --yes | ||
cd doc/sphinx | ||
make html | ||
|
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.