Skip to content

Commit

Permalink
try fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Snoopy1866 committed Sep 11, 2024
1 parent 8cef469 commit 866f90a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ env:
jobs:
setup:
runs-on: ubuntu-latest
outputs:
cache-hit: ${{ steps.cache.outputs.cache-hit }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -44,12 +46,18 @@ jobs:
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Restore Cached Dependencies
id: restore-cache
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: pip-${{ runner.os }}-${{ hashFiles('requirements-dev.txt') }}
restore-keys: |
pip-${{ runner.os }}-
- name: Install Dependencies (if cache not hit)
if: steps.restore-cache.outputs.cache-hit != 'true'
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Run Linter
run: |
black src
Expand All @@ -58,8 +66,6 @@ jobs:
runs-on: ubuntu-latest
needs: setup
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Restore Cached Dependencies
uses: actions/cache@v4
with:
Expand Down

0 comments on commit 866f90a

Please sign in to comment.