diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 611d9d7..513d567 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -8,49 +8,38 @@ on: jobs: build: - runs-on: ubuntu-latest-2 + runs-on: ubuntu-latest + steps: - - name: 克隆本地 checkout action - run: | - git clone http://114.67.155.184:3000/niyyzf/checkout.git ./.actions/checkout + - name: Checkout code + uses: actions/checkout@v3 - - name: 克隆本地 setup-node action - run: | - 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 + - name: Set up Node.js + uses: actions/setup-node@v3 with: node-version: '18' - - name: 安装前端依赖 + - name: Install frontend dependencies working-directory: platform run: npm install - - name: 构建前端 + - name: Build frontend working-directory: platform run: npm run build - - name: 设置 Python - uses: ./.actions/setup-python + - name: Set up Python + uses: actions/setup-python@v4 with: python-version: '3.10' - - name: 安装后端依赖 + - name: Install backend dependencies working-directory: back run: pip install -r requirements.txt - - name: 运行后端测试(如有) + - name: Run backend tests (if any) working-directory: back run: | if [ -f tests/test.py ]; then python -m unittest discover -s tests; fi - - name: 构建 Docker 镜像 + - name: Build Docker image run: docker-compose build \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..9f424c3 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file