This repository was archived by the owner on Mar 14, 2025. It is now read-only.
[v1.5.1.1b] [WebAPI] 移除不再使用的.env文件,更新get_info_dir函数以支持默认DEV值,重构Exampl… #11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python CI with PDM | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest # 你也可以选择其他操作系统,如 windows-latest 或 macos-latest | |
steps: | |
# 检出代码 | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
# 安装 PDM | |
- name: Setup PDM | |
uses: pdm-project/setup-pdm@v4 | |
with: | |
python-version: 3.12 | |
cache: true | |
# 安装依赖 | |
- name: Install dependencies | |
run: pdm install | |
# 生成构建(如果你使用 PDM 构建分发包) | |
- name: Build distribution | |
run: | | |
pdm build | |
- name: Upload *.whl | |
uses: actions/upload-artifact@v4 | |
with: | |
name: package.whl | |
path: dist/*.whl | |
- name: Upload *.tar.gz | |
uses: actions/upload-artifact@v4 | |
with: | |
name: package.tar.gz | |
path: dist/*.tar.gz |