Skip to content

Commit

Permalink
Use pip cache to speed up workflow runs (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
drdavella committed Mar 20, 2024
1 parent ac186a3 commit 06a8d42
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/codemod_pygoat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ jobs:
runs-on: ubuntu-20.04
timeout-minutes: 10
steps:
- name: Check out codemodder
uses: actions/checkout@v4
- name: Set Up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Check out codemodder
uses: actions/checkout@v4
cache: 'pip'
- name: Install Codemodder Package
run: pip install .
- name: Install Test Dependencies
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/integration_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@ jobs:
matrix:
python-version: ['3.10', '3.11', '3.12']
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set Up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Check out code
uses: actions/checkout@v4
cache: 'pip'
- name: Install Codemodder Package
run: pip install .
- name: Install Dependencies
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ jobs:
runs-on: ubuntu-20.04
timeout-minutes: 3
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set Up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Check out code
uses: actions/checkout@v4
cache: 'pip'
- name: Install Dependencies
run: |
pip install ".[complexity]"
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ jobs:
runs-on: ubuntu-20.04
timeout-minutes: 5
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set Up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Check out code
uses: actions/checkout@v4
cache: 'pip'
- name: Install build dependencies
run: pip install build twine
- name: Build package
Expand All @@ -45,12 +46,13 @@ jobs:
matrix:
python-version: ['3.10', '3.11', '3.12']
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set Up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Check out code
uses: actions/checkout@v4
cache: 'pip'
- name: Install Codemodder Package
run: pip install .
- name: Install Dependencies
Expand Down

0 comments on commit 06a8d42

Please sign in to comment.