From 2d03550be382487f95015a9e6465686a3aa4cd67 Mon Sep 17 00:00:00 2001 From: liyp Date: Sat, 9 Dec 2023 22:02:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95gitea=20actions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 27 +++++++++++++++++++++++++++ .gitignore | 3 +++ 2 files changed, 30 insertions(+) create mode 100644 .github/workflows/build.yml 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