Skip to content

Commit

Permalink
Update CI for new requirements files
Browse files Browse the repository at this point in the history
  • Loading branch information
amstilp committed Nov 18, 2023
1 parent 174fc3e commit 4b53e93
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 4b53e93

Please sign in to comment.