1
Some checks failed
CI / build (push) Has been cancelled

This commit is contained in:
jrhlh
2025-07-18 19:15:44 +08:00
parent bd1fc93771
commit f2b0d2563c
2 changed files with 21 additions and 24 deletions

View File

@ -8,49 +8,38 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-latest-2 runs-on: ubuntu-latest
steps: steps:
- name: 克隆本地 checkout action - name: Checkout code
run: | uses: actions/checkout@v3
git clone http://114.67.155.184:3000/niyyzf/checkout.git ./.actions/checkout
- name: 克隆本地 setup-node action - name: Set up Node.js
run: | uses: actions/setup-node@v3
git clone http://114.67.155.184:3000/niyyzf/setup-node.git ./.actions/setup-node
- name: 克隆本地 setup-python action
run: |
git clone http://114.67.155.184:3000/niyyzf/setup-python.git ./.actions/setup-python
- name: 检出代码
uses: ./.actions/checkout
- name: 设置 Node.js
uses: ./.actions/setup-node
with: with:
node-version: '18' node-version: '18'
- name: 安装前端依赖 - name: Install frontend dependencies
working-directory: platform working-directory: platform
run: npm install run: npm install
- name: 构建前端 - name: Build frontend
working-directory: platform working-directory: platform
run: npm run build run: npm run build
- name: 设置 Python - name: Set up Python
uses: ./.actions/setup-python uses: actions/setup-python@v4
with: with:
python-version: '3.10' python-version: '3.10'
- name: 安装后端依赖 - name: Install backend dependencies
working-directory: back working-directory: back
run: pip install -r requirements.txt run: pip install -r requirements.txt
- name: 运行后端测试(如有) - name: Run backend tests (if any)
working-directory: back working-directory: back
run: | run: |
if [ -f tests/test.py ]; then python -m unittest discover -s tests; fi if [ -f tests/test.py ]; then python -m unittest discover -s tests; fi
- name: 构建 Docker 镜像 - name: Build Docker image
run: docker-compose build run: docker-compose build

8
.idea/modules.xml generated Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/nonye.iml" filepath="$PROJECT_DIR$/.idea/nonye.iml" />
</modules>
</component>
</project>