From af75f2b7ab541a367031f919bcb0d9995b3308a8 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 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 5601d61d..64ca7ad7 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,18 @@ 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]" + wheels=(dist/aiobotocore-*-py3-none-any.whl) + pip install "${files[0]}[awscli,boto3]" - name: Run pre-commit hooks run: | make pre-commit