diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 2d1bfe9..a67dcb2 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -1,6 +1,10 @@ name: Publish PyGeoweaver Python 🐍 distributions 📦 to PyPI and TestPyPI -on: push +on: + workflow_run: + workflows: ["Run Tests"] + types: + - completed jobs: test-installation: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4765ce6..b04ecc2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -21,15 +21,18 @@ jobs: with: python-version: '3.9' # specify the Python version you need + - name: Install Poetry + run: | + curl -sSL https://install.python-poetry.org | python3 - + export PATH="$HOME/.local/bin:$PATH" + - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - pip install pytest + poetry install - name: Run tests run: | - pytest tests/ + poetry run pytest tests/ - name: Upload pytest results if: always()