Skip to content

Commit

Permalink
Merge pull request #239 from SauravMaheshkar/ci-pip-cache
Browse files Browse the repository at this point in the history
feat(ci): add `pip` cache to CI
  • Loading branch information
nkoep committed Apr 4, 2023
2 parents ac16fea + 596b5e5 commit acb52b2
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 4 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/build_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,17 @@ jobs:
matrix:
version: ${{ fromJSON(needs.build-matrix.outputs.versions) }}
steps:
- name: Clone repository
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up python 3.7
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.7
cache: pip
cache-dependency-path: pyproject.toml

- name: Clone repository
uses: actions/checkout@v2
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/build_release_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,15 @@ jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up python 3.7
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.7
cache: pip
cache-dependency-path: pyproject.toml

- name: Checkout
uses: actions/checkout@v2
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/run_linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,15 @@ jobs:
linting:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up python 3.9
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.9
cache: pip
cache-dependency-path: pyproject.toml

- name: Checkout
uses: actions/checkout@v2
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,15 @@ jobs:
- "3.9"
- "3.10"
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: pyproject.toml

- name: Checkout
uses: actions/checkout@v2
Expand Down

0 comments on commit acb52b2

Please sign in to comment.