From 834568105883e1b49bef127656f0f924ebffa59b Mon Sep 17 00:00:00 2001 From: Jakob Keller <57402305+jakob-keller@users.noreply.github.com> Date: Sun, 29 Dec 2024 12:28:19 +0100 Subject: [PATCH] test Python package distributions in CI --- .github/workflows/ci-cd.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 5601d61d..c7ebf7c2 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -43,6 +43,8 @@ jobs: test: name: Test Python ${{ matrix.python-version }} + needs: + - build runs-on: ubuntu-latest strategy: matrix: @@ -67,12 +69,17 @@ jobs: with: python-version: ${{ matrix.python-version }} allow-prereleases: true + - name: Download distribution 📦 + uses: actions/download-artifact@v4 + with: + name: python-package-distributions + path: dist/ - name: Lock and sync dependencies run: | python -m pip install -U pip pip-tools pip-compile --all-extras pyproject.toml requirements-dev.in pip-sync - pip install -e ".[awscli,boto3]" + pip install "dist/aiobotocore-*-py3-none-any.whl[awscli,boto3]" - name: Run pre-commit hooks run: | make pre-commit