fix: 修改workflow配置文件

This commit is contained in:
dqy
2024-04-25 20:20:36 +08:00
parent 6041a8f573
commit 4835af7ff7
2 changed files with 18 additions and 52 deletions

18
.github/workflows/python-tests.yml vendored Normal file
View File

@@ -0,0 +1,18 @@
name: Python application test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
- name: Run tests
run: python -m unittest discover -s tests