Skip to content

Commit

Permalink
fix CI cache
Browse files Browse the repository at this point in the history
  • Loading branch information
submarcos committed Mar 12, 2024
1 parent beb5b86 commit 203a4d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 21 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,13 @@ jobs:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v5
- uses: ./.github/actions/python-cache-requirements
with:
python-version: ${{ matrix.python-version }}

- uses: actions/cache@v3
with:
path: |
~/.cache/pip
~/.wheel_dir
key: pip-cache-${{ matrix.python-version }}-${{ hashFiles('./requirements.txt', './dev-requirements.txt', './docs/requirements.txt') }}
restore-keys: |
pip-cache-${{ matrix.python-version }}-${{ hashFiles('./requirements.txt', './dev-requirements.txt', './docs/requirements.txt') }}
pip-cache-${{ matrix.python-version }}-
requirements: dev-requirements.txt

- name: Install dependencies
run: |
pip3 wheel --wheel-dir=~/.wheel_dir pip wheel setuptools
pip3 wheel --wheel-dir=~/.wheel_dir -r requirements.txt
pip3 wheel --wheel-dir=~/.wheel_dir -r dev-requirements.txt
pip3 wheel --wheel-dir=~/.wheel_dir -r docs/requirements.txt
pip3 install --find-links=~/.wheel_dir --upgrade pip-tools -c dev-requirements.txt
pip3 install -c dev-requirements.txt pip-tools
- name: Check dependency graph
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ jobs:
path: |
./venv
key: pip-${{ matrix.python-version }}-${{ hashFiles('./requirements.txt', './dev-requirements.txt', './docs/requirements.txt') }}
key: pip-${{ matrix.python-version }}-${{ matrix.os }}-${{ hashFiles('./requirements.txt', './dev-requirements.txt', './docs/requirements.txt') }}
restore-keys: |
pip-${{ matrix.python-version }}-${{ hashFiles('./requirements.txt', './dev-requirements.txt', './docs/requirements.txt') }}
pip-${{ matrix.python-version }}-
pip-${{ matrix.python-version }}-${{ matrix.os }}-${{ hashFiles('./requirements.txt', './dev-requirements.txt', './docs/requirements.txt') }}
pip-${{ matrix.python-version }}-${{ matrix.os }}
- name: Prepare test env
run: |
Expand Down

0 comments on commit 203a4d9

Please sign in to comment.