Skip to content

Commit

Permalink
Update pypi-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jagapiou authored Jan 4, 2024
1 parent dce0e61 commit ad1b93f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ad1b93f

Please sign in to comment.