This commit is contained in:
parent
cc851254be
commit
2d03550be3
2 changed files with 30 additions and 0 deletions
27
.github/workflows/build.yml
vendored
Normal file
27
.github/workflows/build.yml
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
name: Default
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main # 适应你的默认分支
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.10 # 适应你的 Python 版本
|
||||
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
|
||||
- name: Build
|
||||
run: python setup.py bdist
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1 +1,4 @@
|
|||
main/__pycache__/
|
||||
build/
|
||||
dist/
|
||||
*.egg-info/
|
Loading…
Reference in a new issue