Skip to content

Commit

Permalink
Cache installed dependencies in CI (#2493)
Browse files Browse the repository at this point in the history
  • Loading branch information
sethmlarson committed Nov 25, 2021
1 parent 213e190 commit 59a8459
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: "3"
cache: pip
- name: Check packages
run: |
python3 -m pip install wheel twine rstcheck;
Expand Down Expand Up @@ -67,12 +68,14 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
cache: pip

- name: Set Up Python - ${{ matrix.python-version }}
uses: actions/setup-python@v2
if: "!endsWith(matrix.python-version, '-dev')"
with:
python-version: ${{ matrix.python-version }}
cache: pip

- name: Set Up Python (Development version) - ${{ matrix.python-version }}
uses: deadsnakes/action@v2.0.2
Expand All @@ -85,6 +88,7 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: "3"
cache: pip

- name: Install Dependencies
run: python -m pip install --upgrade nox
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: "3.8"
cache: pip
- name: Lint the code
uses: pre-commit/action@v2.0.0
- name: Install dependencies
Expand Down

0 comments on commit 59a8459

Please sign in to comment.