diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..7a767ad --- /dev/null +++ b/.github/workflows/build.yml @@ -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 diff --git a/.gitignore b/.gitignore index 85b4290..4daa2df 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ main/__pycache__/ +build/ +dist/ +*.egg-info/ \ No newline at end of file