This reverts commit a9c16febf4.
This commit is contained in:
Soulter
2026-03-05 01:34:07 +08:00
parent 2d27bfb6d0
commit 6beca2144c
116 changed files with 1022 additions and 1299 deletions

View File

@@ -46,8 +46,6 @@ jobs:
include:
- language: python
build-mode: none
- language: javascript-typescript
build-mode: none
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
# Use `c-cpp` to analyze code written in C, C++ or both
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both

View File

@@ -23,13 +23,12 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip uv
uv sync --group dev
python -m pip install --upgrade pip
pip install pytest pytest-asyncio pytest-cov
pip install --editable .
- name: Run tests
run: |
@@ -38,7 +37,7 @@ jobs:
mkdir -p data/temp
export TESTING=true
export ZHIPU_API_KEY=${{ secrets.OPENAI_API_KEY }}
uv run pytest --cov=astrbot -v -o log_cli=true -o log_level=DEBUG
pytest --cov=astrbot -v -o log_cli=true -o log_level=DEBUG
- name: Upload results to Codecov
uses: codecov/codecov-action@v5

View File

@@ -13,23 +13,18 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.28.2
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '24.13.0'
cache: "pnpm"
cache-dependency-path: dashboard/pnpm-lock.yaml
- name: Install and build
- name: npm install, build
run: |
pnpm --dir dashboard install --frozen-lockfile
pnpm --dir dashboard run typecheck
pnpm --dir dashboard run build
cd dashboard
npm install pnpm -g
pnpm install
pnpm i --save-dev @types/markdown-it
pnpm run build
- name: Inject Commit SHA
id: get_sha

View File

@@ -25,18 +25,6 @@ jobs:
fetch-depth: 1
fetch-tag: true
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.28.2
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '24.13.0'
cache: "pnpm"
cache-dependency-path: dashboard/pnpm-lock.yaml
- name: Check for new commits today
if: github.event_name == 'schedule'
id: check-commits
@@ -58,10 +46,12 @@ jobs:
- name: Build Dashboard
run: |
pnpm --dir dashboard install --frozen-lockfile
pnpm --dir dashboard run build
mkdir -p dashboard/dist/assets
echo $(git rev-parse HEAD) > dashboard/dist/assets/version
cd dashboard
npm install
npm run build
mkdir -p dist/assets
echo $(git rev-parse HEAD) > dist/assets/version
cd ..
mkdir -p data
cp -r dashboard/dist data/
@@ -133,18 +123,6 @@ jobs:
fetch-depth: 1
fetch-tag: true
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.28.2
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '24.13.0'
cache: "pnpm"
cache-dependency-path: dashboard/pnpm-lock.yaml
- name: Get latest tag (only on manual trigger)
id: get-latest-tag
if: github.event_name == 'workflow_dispatch'
@@ -175,10 +153,12 @@ jobs:
- name: Build Dashboard
run: |
pnpm --dir dashboard install --frozen-lockfile
pnpm --dir dashboard run build
mkdir -p dashboard/dist/assets
echo $(git rev-parse HEAD) > dashboard/dist/assets/version
cd dashboard
npm install
npm run build
mkdir -p dist/assets
echo $(git rev-parse HEAD) > dist/assets/version
cd ..
mkdir -p data
cp -r dashboard/dist data/

View File

@@ -18,29 +18,6 @@ permissions:
contents: write
jobs:
verify-core:
name: Verify Core Quality Gate
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
ref: ${{ inputs.ref || github.ref }}
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install uv
shell: bash
run: python -m pip install uv
- name: Run local PR gate checks
shell: bash
run: make pr-test-neo
build-dashboard:
name: Build Dashboard
runs-on: ubuntu-24.04
@@ -108,8 +85,7 @@ jobs:
VERSION_TAG: ${{ steps.tag.outputs.tag }}
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y rclone
curl https://rclone.org/install.sh | sudo bash
mkdir -p ~/.config/rclone
cat <<EOF > ~/.config/rclone/rclone.conf
@@ -130,7 +106,6 @@ jobs:
name: Publish GitHub Release
runs-on: ubuntu-24.04
needs:
- verify-core
- build-dashboard
steps:
- name: Checkout repository
@@ -251,7 +226,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
python-version: "3.10"
- name: Install uv
shell: bash