2121 strategy :
2222 matrix :
2323 os : [ubuntu-latest, macos-14]
24- python-version : ["3.9 ", "3.12 "]
24+ python-version : ["3.10 ", "3.13 "]
2525 include :
2626 - os : ubuntu-latest
2727 CONDA_OS : linux-64
3535 - name : Test n3fit and validphys
3636 shell : bash -l {0}
3737 run : |
38- pytest --cov=${PWD} --cov-config=pyproject.toml --mpl --pyargs validphys n3fit --mpl-default-tolerance 18
38+ pytest --cov=${PWD} --cov-config=pyproject.toml --mpl --pyargs validphys n3fit --mpl-default-tolerance 24
3939 - name : Keep coverage file
40- if : startsWith(matrix.python-version, '3.12 ')
40+ if : startsWith(matrix.python-version, '3.13 ')
4141 uses : actions/upload-artifact@v4
4242 with :
4343 include-hidden-files : true
7474 fetch-depth : 0
7575 - uses : ./.github/actions/prepare_environment
7676 with :
77- python-version : " 3.12 "
77+ python-version : " 3.13 "
7878 - name : Build recipe
7979 shell : bash -l {0}
8080 run : |
@@ -96,10 +96,13 @@ jobs:
9696 - uses : actions/checkout@v4
9797 - uses : actions/setup-python@v5
9898 with :
99- python-version : " 3.12 "
99+ python-version : " 3.13 "
100100 - name : Install nnpdf without LHAPDF
101101 shell : bash -l {0}
102102 run : |
103+ sudo rm -rf /opt/hostedtoolcache/Python/{3.9*}
104+ sudo rm -rf /opt/hostedtoolcache/CodeQL
105+ sudo rm -rf /usr/local/lib/android/sdk
103106 pip install .[nolha,torch]
104107 # Since there is no LHAPDF in the system, initialize the folder and download pdfsets.index
105108 lhapdf-management update --init
@@ -108,6 +111,36 @@ jobs:
108111 run : |
109112 cd n3fit/runcards/examples
110113 n3fit Basic_runcard.yml 4
114+ cat Basic_runcard/nnfit/*/Basic_runcard.json
115+ - name : Test we can still run postfit
116+ shell : bash -l {0}
117+ run : |
118+ output=$(vp-get fit NNPDF40_nnlo_like_CI_testing_250616)
119+ fit_path=$(echo $output | grep -o "PosixPath('.*')" | cut -d"'" -f2)
120+ mv ${fit_path} .
121+ postfit 50 NNPDF40_nnlo_like_CI_testing_250616
122+
123+ run_jax :
124+ runs-on : ubuntu-latest
125+ env :
126+ KERAS_BACKEND : jax
127+ steps :
128+ - uses : actions/checkout@v4
129+ - uses : actions/setup-python@v5
130+ with :
131+ python-version : " 3.13"
132+ - name : Install nnpdf without LHAPDF
133+ shell : bash -l {0}
134+ run : |
135+ pip install .[nolha,jax]
136+ # Since there is no LHAPDF in the system, initialize the folder and download pdfsets.index
137+ lhapdf-management update --init
138+ - name : Test we can run one runcard
139+ shell : bash -l {0}
140+ run : |
141+ cd n3fit/runcards/examples
142+ n3fit Basic_runcard.yml 42
143+ cat Basic_runcard/nnfit/*/Basic_runcard.json
111144
112145 full_coverage :
113146 needs : [run_package_tests, regression_tests]
0 commit comments