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

26
.github/workflows/python-test.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: Python application 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