From a3ccb4a8e5e3dac43b0405a1a6f74e8595d747d1 Mon Sep 17 00:00:00 2001 From: Snowykami Date: Sun, 15 Dec 2024 22:58:46 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=91=EF=B8=8F=20=E5=88=A0=E9=99=A4=20Py?= =?UTF-8?q?test=20=E5=B7=A5=E4=BD=9C=E6=B5=81=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/run-pytest.yml | 50 -------------------------------- 1 file changed, 50 deletions(-) delete mode 100755 .github/workflows/run-pytest.yml diff --git a/.github/workflows/run-pytest.yml b/.github/workflows/run-pytest.yml deleted file mode 100755 index f69e813b..00000000 --- a/.github/workflows/run-pytest.yml +++ /dev/null @@ -1,50 +0,0 @@ -# This workflow will install Python dependencies, run tests and lint with multiple versions of Python -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python - -name: Pytest API Testing - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -permissions: - contents: read - -jobs: - Pytest: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ['3.10', '3.11', '3.12', '3.13'] # 添加你想要测试的 Python 版本 - - steps: - - uses: actions/checkout@v3 - - - name: Set up Python - uses: actions/setup-python@v3 - with: - python-version: ${{ matrix.python-version }} # 使用矩阵中的 Python 版本 - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install pdm - pdm install - - - name: Test with pytest - run: | - pdm run pytest --junitxml=report/report.xml - - - name: Archive Pytest test report - uses: actions/upload-artifact@v3 - with: - name: SuperTest-test-report-${{ matrix.python-version }} - path: report - - - name: Upload Pytest report to GitHub - uses: actions/upload-artifact@v3 - with: - name: Pytest-test-report-${{ matrix.python-version }} - path: report