diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 76e0cb34..e7725a9c 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -34,18 +34,18 @@ jobs: with: python-version: '3.11' - - name: Build distribution + - name: Build source distribution run: | pip install build==1.0.3 - python -m build --outdir dist/ + python -m build --sdist --outdir dist/ - - name: Test distribution + - name: Test source distribution if: github.event_name == 'release' || inputs.test_sdist run: | VENV="$(mktemp --dry-run)" python -m venv "${VENV}" source "${VENV}/bin/activate" - pip install dist/*.whl + pip install dist/*.tar.gz pip install pytest-xdist pytest -n auto -rax --pyargs meltingpot deactivate