From 3227ba32692adf2c555cb4b4c7a8b47152b68fcb Mon Sep 17 00:00:00 2001 From: 2061360308 <2061360308@qq.com> Date: Thu, 14 Dec 2023 17:58:54 +0800 Subject: [PATCH] test:add test workflows --- .github/workflows/pytest.yml | 27 +++++++++++++++++++++++++++ requirements.txt | Bin 194 -> 82 bytes 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/pytest.yml diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml new file mode 100644 index 0000000..35223ee --- /dev/null +++ b/.github/workflows/pytest.yml @@ -0,0 +1,27 @@ +name: Python package + +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@v2 + with: + python-version: 3.8 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pytest + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Run tests with pytest + run: | + pytest \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index fcff4d9ac70f244b6415f1c12a9c3781921bb16b..64ea9be776273cd0b21bc31fc926d95c0563d6a4 100644 GIT binary patch delta 26 gcmX@a7&O67#FoL9!H7YR!I;4iNE$HkGH@{f07X{=s{jB1 literal 194 zcmZ9GSqj2H5Jca%;2pd`bc_o|5Cjhrk`TcyYK(}NSD%AlQq)XMcUSeiUl*PvoY>LG zgqDJe+IuAeL*_Ejr)RC^%H8uuCkL$MR^QRul2ODas#0B0I+ZhFY)VD?+p_0iw=(Z6 cI`w~Y9vzu`r!wfwn6dDcI{nbqn(_V92Q3#M0ssI2