From 9e5640ad80bfe7fbb182b68dad4cdf09bdebdacc Mon Sep 17 00:00:00 2001 From: dqy <1016751306@qq.com> Date: Sat, 20 Apr 2024 11:12:28 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=B7=BB=E5=8A=A0action=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/detection-test.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/detection-test.yml diff --git a/.github/workflows/detection-test.yml b/.github/workflows/detection-test.yml new file mode 100644 index 0000000..e0f296c --- /dev/null +++ b/.github/workflows/detection-test.yml @@ -0,0 +1,26 @@ +name: Detection test + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.8 + uses: actions/setup-python@v1 + with: + python-version: 3.8 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pytest + # 如果你的测试需要其他依赖,可以在这里添加pip install命令 + - name: Run tests + run: | + python -m unittest discover -s tests