From b01e1f9a46a096e8a3964c141c1bca511e35bebe Mon Sep 17 00:00:00 2001 From: dqy <1016751306@qq.com> Date: Wed, 24 Apr 2024 17:13:36 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E4=BF=9D=E7=95=99=E5=8E=9F=E6=9C=89?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python-test.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 python-test.yml diff --git a/python-test.yml b/python-test.yml new file mode 100644 index 0000000..1042ee4 --- /dev/null +++ b/python-test.yml @@ -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