27 lines
521 B
YAML
27 lines
521 B
YAML
name: Default
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master # 适应你的默认分支
|
|
|
|
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.0 # 适应你的 Python 版本
|
|
|
|
- name: Install Dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r requirements.txt
|
|
|
|
- name: Build
|
|
run: python setup.py bdist
|