fix: 修改自动测试
Some checks failed
Python application test / build (pull_request) Failing after 25s

This commit is contained in:
dqy 2024-04-20 11:42:27 +08:00
parent c140f21b8e
commit fa98d64577

View File

@ -1,4 +1,4 @@
name: Detection test name: Python application test
on: on:
push: push:
@ -8,14 +8,14 @@ on:
jobs: jobs:
build: build:
runs-on: windows-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v2
- name: Set up Python 3.8.15 - name: Set up Python 3.8
uses: ./ uses: actions/setup-python@v1
with: with:
python-version: "3.8.15" python-version: 3.8
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
@ -23,4 +23,4 @@ jobs:
# 如果你的测试需要其他依赖可以在这里添加pip install命令 # 如果你的测试需要其他依赖可以在这里添加pip install命令
- name: Run tests - name: Run tests
run: | run: |
python -m unittest ./tests/test_backdoor_detection.py python -m unittest discover -s tests