Skip to content

Commit

Permalink
chore: 修复 GitHub Workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
st1020 committed Aug 30, 2024
1 parent 034df71 commit 450233e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 22 deletions.
5 changes: 1 addition & 4 deletions .github/actions/setup-python/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ inputs:

runs:
using: composite
env:
# Configure a constant location for the uv cache
UV_CACHE_DIR: /tmp/.uv-cache
steps:
- name: Set up uv
if: ${{ runner.os == 'Linux' || runner.os == 'macOS' }}
Expand All @@ -35,7 +32,7 @@ runs:
if: ${{ inputs.sync && inputs.cache }}
uses: actions/cache@v4
with:
path: ${{ env.UV_CACHE_DIR }}
path: /tmp/.uv-cache
key: ${{ runner.os }}-${{ runner.arch }}-python-${{ inputs.python-version }}-uv-${{ hashFiles('uv.lock') }}

- name: Install the project
Expand Down
22 changes: 4 additions & 18 deletions .github/workflows/lint-other.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,8 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
version: latest
- uses: actions/setup-node@v4
with:
node-version: latest
cache: pnpm
- run: pnpm install
shell: bash
- name: Setup Node
uses: ./.github/actions/setup-node

- run: pnpm run prettier

Expand All @@ -34,14 +27,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
version: latest
- uses: actions/setup-node@v4
with:
node-version: latest
cache: pnpm
- run: pnpm install
shell: bash
- name: Setup Node
uses: ./.github/actions/setup-node

- run: pnpm run eslint

0 comments on commit 450233e

Please sign in to comment.