From fa98d645774d055a9bf1bda8e361bb69e073172f Mon Sep 17 00:00:00 2001 From: dqy <1016751306@qq.com> Date: Sat, 20 Apr 2024 11:42:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{detection-test.yml => python-test.yml} | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) rename .github/workflows/{detection-test.yml => python-test.yml} (60%) diff --git a/.github/workflows/detection-test.yml b/.github/workflows/python-test.yml similarity index 60% rename from .github/workflows/detection-test.yml rename to .github/workflows/python-test.yml index 7ec4f52..eddec27 100644 --- a/.github/workflows/detection-test.yml +++ b/.github/workflows/python-test.yml @@ -1,4 +1,4 @@ -name: Detection test +name: Python application test on: push: @@ -8,14 +8,14 @@ on: jobs: build: - runs-on: windows-latest + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Set up Python 3.8.15 - uses: ./ + - uses: actions/checkout@v2 + - name: Set up Python 3.8 + uses: actions/setup-python@v1 with: - python-version: "3.8.15" + python-version: 3.8 - name: Install dependencies run: | python -m pip install --upgrade pip @@ -23,4 +23,4 @@ jobs: # 如果你的测试需要其他依赖,可以在这里添加pip install命令 - name: Run tests run: | - python -m unittest ./tests/test_backdoor_detection.py + python -m unittest discover -s tests