fix: 修改自动测试
Some checks failed
Python application test / build (pull_request) Has been cancelled
Some checks failed
Python application test / build (pull_request) Has been cancelled
This commit is contained in:
parent
fa98d64577
commit
28f2f7abf1
7
.github/workflows/python-test.yml
vendored
7
.github/workflows/python-test.yml
vendored
@ -8,19 +8,18 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up Python 3.8
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v1
|
||||||
with:
|
with:
|
||||||
python-version: 3.8
|
python-version: 3.8.15
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install pytest
|
pip install pytest
|
||||||
# 如果你的测试需要其他依赖,可以在这里添加pip install命令
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
python -m unittest discover -s tests
|
python -m unittest discover -s tests
|
||||||
|
Loading…
x
Reference in New Issue
Block a user