From fc7372099526df87036fb5b1851748ab7b3380e0 Mon Sep 17 00:00:00 2001 From: Jakob Keller <57402305+jakob-keller@users.noreply.github.com> Date: Fri, 23 Aug 2024 16:17:27 +0200 Subject: [PATCH] simplify dependency installation in CI/CD --- .github/workflows/ci-cd.yml | 10 ++++------ requirements-dev.in | 2 -- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 581012d1..fa2973ea 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -71,14 +71,12 @@ jobs: with: python-version: ${{ matrix.python-version }} allow-prereleases: true - - name: Lock and sync dependencies - env: - AIOHTTP_VERSION: ${{ matrix.aiohttp-version }} + - name: Install dependencies run: | python -V -V - python -m pip install -U pip codecov pip-tools - time pip-compile requirements-dev.in - time pip-sync requirements-dev.txt + python -m pip install --upgrade pip + echo "aiohttp${{ matrix.aiohttp-version }}" > constraints.txt + python -m pip install -r requirements-dev.in -c contraints.txt - name: Run pre-commit hooks if: matrix.python-version == '3.11' run: | diff --git a/requirements-dev.in b/requirements-dev.in index 6817775c..e7657bfa 100644 --- a/requirements-dev.in +++ b/requirements-dev.in @@ -14,6 +14,4 @@ dill~=0.3.3 # this is needed for test_version tomli; python_version < "3.11" -aiohttp${AIOHTTP_VERSION} - -e .[awscli,boto3]