Skip to content

Commit

Permalink
Don't cache pip install as it is slower
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrost-mo committed Jan 15, 2024
1 parent 6160974 commit 73a78e8
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/pull_request_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,12 @@ jobs:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Get week number for cache
id: week
run: echo "week=$(date '+W%V')" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
with:
key: coverage-report|${{ env.pythonLocation }}|${{ steps.week.outputs.week }}
path: ~/.cache/pip
- name: Install coverage
run: python3 -m pip install coverage
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
pattern: coverage-data-*
Expand Down Expand Up @@ -90,6 +83,7 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand All @@ -100,7 +94,6 @@ jobs:
path: ~/.cache/pre-commit
- name: Set up pre-commit
run: python3 -m pip install pre-commit
- uses: actions/checkout@v4
- name: Run pre-commit
run: pre-commit run --show-diff-on-failure --color=always --all-files

Expand Down

0 comments on commit 73a78e8

Please sign in to comment.