Skip to content

Commit

Permalink
don't install nnpdf in the pypi workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyStegeman committed Oct 22, 2024
1 parent 6cbab5e commit c582dd6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@ on:
jobs:
publish:
uses: NNPDF/workflows/.github/workflows/python-poetry-pypi.yml@v2
with:
poetry-extras: "-E nnpdf" # pass your extras here
secrets:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
5 changes: 5 additions & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

from pineko import utils

try:
import nnpdf_data
except ImportError:
nnpdf_data = None

@pytest.mark.skipif(nnpdf_data is None, reason="nnpdf extras are not installed in the pypi package creation workflow")
@pytest.mark.parametrize(
"dsname", ["HERA_NC_318GEV_EAVG_CHARM-SIGMARED", "ATLAS_DY_7TEV_46FB_CC"]
)
Expand Down

0 comments on commit c582dd6

Please sign in to comment.