diff --git a/.github/workflows/release-pypi.yaml b/.github/workflows/release-pypi.yaml index 29e5b6c4d..4d40ddf15 100644 --- a/.github/workflows/release-pypi.yaml +++ b/.github/workflows/release-pypi.yaml @@ -26,11 +26,12 @@ jobs: - name: Show Python version run: python --version - - name: Install Python package dependencies + - name: Build package run: | python -m pip install build twine python -m build twine check --strict dist/* + - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml index edaefa6eb..3c6188df0 100644 --- a/.github/workflows/test-python.yml +++ b/.github/workflows/test-python.yml @@ -36,7 +36,9 @@ jobs: - '3.11' - '3.10' - '3.9' - + defaults: + run: + working-directory: python steps: - uses: actions/checkout@v4 - name: Set up Python @@ -48,14 +50,15 @@ jobs: run: python --version - name: Install Python package dependencies run: | - python -m pip install build twine pip setuptools wheel + python -m pip install twine pip setuptools wheel pip install -r requirements.txt pip install -e . - python -m build - twine check --strict dist/* - name: Run tests run: pytest - - - name: run acceptance tests + - name: Run Acceptance Tests run: make acceptance - working-directory: python + - name: Build package + run: | + python -m pip install build twine + python -m build + twine check --strict dist/*