From 4b53e93fe2715e7f8a2d6ac45764bd0ab029a174 Mon Sep 17 00:00:00 2001 From: Adrienne Stilp Date: Fri, 17 Nov 2023 16:49:01 -0800 Subject: [PATCH] Update CI for new requirements files --- .github/workflows/ci.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9eaf0c25..1b859332 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,8 +32,8 @@ jobs: python-version: 3.9 cache: pip cache-dependency-path: | - requirements/base.txt - requirements/local.txt + requirements/requirements.txt + requirements/test-requirements.txt # Run all pre-commit hooks on all the files. # Getting only staged files can be tricky in case a new PR is opened @@ -75,13 +75,14 @@ jobs: python-version: ${{ matrix.python-version }} cache: pip cache-dependency-path: | - requirements/base.txt - requirements/local.txt + requirements/requirements.txt + requirements/test-requirements.txt - name: Install Dependencies run: | python -m pip install --upgrade pip - pip install -r requirements/local.txt + pip install pip-tools + pip-sync requirements/requirements.txt requirements/test-requirements.txt - name: Run tests run: coverage run -p -m pytest @@ -108,13 +109,14 @@ jobs: python-version: 3.8 cache: pip cache-dependency-path: | - requirements/base.txt - requirements/local.txt + requirements/requirements.txt + requirements/test-requirements.txt - name: Install Dependencies run: | python -m pip install --upgrade pip - pip install -r requirements/local.txt + pip install pip-tools + pip-sync requirements/requirements.txt requirements/test-requirements.txt - name: Run tests run: coverage run -p -m pytest