diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 2065277..9a4cb2f 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -9,15 +9,16 @@ jobs: strategy: max-parallel: 3 matrix: - python-version: [3.8, 3.9] + python-version: [3.9, "3.10"] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v3 - name: Setup Conda uses: conda-incubator/setup-miniconda@v2 with: python-version: ${{ matrix.python-version }} auto-update-conda: true + activate-environment: pytesting - name: Install dependencies and package shell: bash --login {0} run: | @@ -25,7 +26,7 @@ jobs: python -m pip install --upgrade pip pip install .[tf-cpu] # Install LHAPDF - conda install -y lhapdf -c https://packages.nnpdf.science/conda + conda install -y lhapdf -c conda-forge # Download and install a PDF set to ensure that the environment paths are working wget http://pcteserver.mi.infn.it/~nnpdf/nnpdf31/NNPDF31_nnlo_as_0118.tar.gz mkdir -p pdfsets diff --git a/benchmarks_and_tests/test_many_pdfs.py b/benchmarks_and_tests/test_many_pdfs.py index a8f6c6b..4f1822a 100644 --- a/benchmarks_and_tests/test_many_pdfs.py +++ b/benchmarks_and_tests/test_many_pdfs.py @@ -121,6 +121,10 @@ def _compare_w_lhapdf(pdf, npoints=1000, tolerance=1e-6): # Try loading the PDF loaded_pdf = pdf.load() _compare_w_lhapdf(loaded_pdf, npoints=args.points, tolerance=args.tolerance) + except KeyError as e: + # If there's a key error on the PDF either the .info file is malformed (then not our problem) + # or the PDF is using analytical running for alpha_s, so PDFFlow cannot use it + pass except Exception as e: # We are not going to care that much _how_ the failure happened if args.verbose: