diff --git a/.github/workflows/run-mock_project.yml b/.github/workflows/run-mock_project.yml index 9a2e3e4..3c00331 100644 --- a/.github/workflows/run-mock_project.yml +++ b/.github/workflows/run-mock_project.yml @@ -1,6 +1,4 @@ -# https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/ -# https://www.ianwootten.co.uk/2020/10/23/publishing-to-pypi-using-github-actions/ -name: Publish nuts to PyPI and release on GitHub +name: Run mock project on: [push, workflow_dispatch] jobs: @@ -18,13 +16,12 @@ jobs: - name: Build package run: poetry build - - name: Create and start virtual environment run: | python3 -m venv .venv source .venv/bin/activate working-directory: tests/mock_project - - name: Build and then publish nuts to PyPI + - name: Install NUTS using wheel run: pip install ../../dist/nuts*.whl working-directory: tests/mock_project - name: Run pytest in mock_project