Skip to content

Commit

Permalink
update caching
Browse files Browse the repository at this point in the history
  • Loading branch information
shapiromatron committed Jul 25, 2023
1 parent fa49960 commit b2fbb2d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 27 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/dev-enviro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,11 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: try to restore pip cache
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py', 'requirements_dev.txt') }}
restore-keys: |
${{ runner.os }}-pip-
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install -U pip wheel
python -m pip install -r requirements_dev.txt
python -m pip install -U pip
python -m pip install -r ".[dev]"
- name: Check all Makefile commands
run: |
make clean
Expand Down
21 changes: 3 additions & 18 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,11 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Restore pip cache (Linux)
uses: actions/cache@v3
if: startsWith(runner.os, 'Linux')
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('setup.cfg', 'requirements_dev.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Restore pip cache (Windows)
uses: actions/cache@v3
if: startsWith(runner.os, 'Windows')
with:
path: ~\AppData\Local\pip\Cache
key: ${{ runner.os }}-pip-${{ hashFiles('setup.cfg', 'requirements_dev.txt') }}
restore-keys: |
${{ runner.os }}-pip-
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install -U pip wheel
python -m pip install -r requirements_dev.txt
python -m pip install -U pip
python -m pip install -r ".[dev]"
- name: Check linting
run: |
make lint
Expand Down

0 comments on commit b2fbb2d

Please sign in to comment.