Skip to content

Commit 17b726d

Browse files
committed
feat: Improve git action test
1 parent bf23c55 commit 17b726d

1 file changed

Lines changed: 24 additions & 24 deletions

File tree

.github/workflows/build.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,22 @@ on:
1111
jobs:
1212
test:
1313
runs-on: ubuntu-latest
14+
defaults:
15+
run:
16+
working-directory: ./backend
1417
steps:
1518
- uses: actions/checkout@v4
16-
- name: Install uv
17-
uses: astral-sh/setup-uv@v4
19+
- name: Setup uv
20+
uses: astral-sh/setup-uv@v7
1821
with:
22+
python-version: "3.11"
1923
enable-cache: true
20-
- name: Set up Python 3.11
21-
run: uv python install 3.11
24+
cache-dependency-glob: "backend/uv.lock"
2225
- name: Install dependencies
23-
working-directory: ./backend
24-
run: uv sync --group dev
26+
run: uv sync --locked --group dev
2527
- name: Test
2628
working-directory: ./backend/src
27-
run: |
28-
mkdir -p config
29-
uv run pytest
29+
run: uv run --frozen pytest
3030

3131
webui-test:
3232
runs-on: ubuntu-latest
@@ -185,7 +185,7 @@ jobs:
185185
uses: docker/metadata-action@v4
186186
with:
187187
images: |
188-
estrellaxd/auto_bangumi
188+
shinonomeow/auto_bangumi
189189
ghcr.io/${{ github.repository }}
190190
tags: |
191191
type=raw,value=${{ needs.version-info.outputs.version }}
@@ -197,7 +197,7 @@ jobs:
197197
uses: docker/metadata-action@v4
198198
with:
199199
images: |
200-
estrellaxd/auto_bangumi
200+
shinonomeow/auto_bangumi
201201
ghcr.io/${{ github.repository }}
202202
tags: |
203203
type=raw,value=${{ needs.version-info.outputs.version }}
@@ -258,7 +258,7 @@ jobs:
258258
builder: ${{ steps.buildx.output.name }}
259259
platforms: linux/amd64,linux/arm64,linux/arm/v7
260260
push: false
261-
tags: estrellaxd/auto_bangumi:test
261+
tags: shinonomeow/auto_bangumi:test
262262
cache-from: type=gha, scope=${{ github.workflow }}
263263
cache-to: type=gha, scope=${{ github.workflow }}
264264

@@ -336,15 +336,15 @@ jobs:
336336
env:
337337
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
338338

339-
telegram:
340-
runs-on: ubuntu-latest
341-
needs: [release]
342-
steps:
343-
- name: send telegram message on push
344-
uses: appleboy/telegram-action@master
345-
with:
346-
to: ${{ secrets.TELEGRAM_TO }}
347-
token: ${{ secrets.TELEGRAM_TOKEN }}
348-
message: |
349-
New release: ${{ needs.release.outputs.version }}
350-
Link: ${{ needs.release.outputs.url }}
339+
# telegram:
340+
# runs-on: ubuntu-latest
341+
# needs: [release]
342+
# steps:
343+
# - name: send telegram message on push
344+
# uses: appleboy/telegram-action@master
345+
# with:
346+
# to: ${{ secrets.TELEGRAM_TO }}
347+
# token: ${{ secrets.TELEGRAM_TOKEN }}
348+
# message: |
349+
# New release: ${{ needs.release.outputs.version }}
350+
# Link: ${{ needs.release.outputs.url }}

0 commit comments

Comments
 (0)