From ed9f7818563bcb940096e64efd33ba5bcacf7dcc Mon Sep 17 00:00:00 2001 From: Glatzel <32577755+Glatzel@users.noreply.github.com> Date: Thu, 17 Oct 2024 17:21:40 +0800 Subject: [PATCH 1/2] Update pr-check.yml --- .github/workflows/pr-check.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index 03f2f2e..5653c64 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -19,4 +19,27 @@ permissions: jobs: check-title: + if: ${{ github.event_name == 'pull_request' }} uses: Glatzel/py-template/.github/workflows/lint-pr.yml@main + + ruff-lint: + uses: Glatzel/py-template/.github/workflows/lint.yml@main + + test: + uses: Glatzel/py-template/.github/workflows/pytest.yml@main + strategy: + matrix: + os: [windows-latest] + with: + name: test + machine: ${{matrix.os}} + test_path: ./src + update_submodule: true + test_args: --benchmark-max-time=0.00005 --benchmark-min-rounds=1 --benchmark-histogram=histogram/arithmetic + cov: true + + check-result: + needs: [check-title,ruff-lint,test] + runs-on: ubuntu-latest + steps: + - run: echo "All success." From 416a6187232cbf99741128bd1b89487b75dfb010 Mon Sep 17 00:00:00 2001 From: Glatzel <32577755+Glatzel@users.noreply.github.com> Date: Thu, 17 Oct 2024 17:22:27 +0800 Subject: [PATCH 2/2] Delete .github/workflows/python-check.yml --- .github/workflows/python-check.yml | 43 ------------------------------ 1 file changed, 43 deletions(-) delete mode 100644 .github/workflows/python-check.yml diff --git a/.github/workflows/python-check.yml b/.github/workflows/python-check.yml deleted file mode 100644 index 79b9299..0000000 --- a/.github/workflows/python-check.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Python Check - -on: - push: - branches: main - pull_request: - types: - - opened - - edited - - synchronize - - ready_for_review - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -permissions: - contents: read - actions: read - checks: write - -jobs: - ruff-lint: - uses: Glatzel/py-template/.github/workflows/lint.yml@main - - test: - uses: Glatzel/py-template/.github/workflows/pytest.yml@main - strategy: - matrix: - os: [windows-latest] - with: - name: test - machine: ${{matrix.os}} - test_path: ./src - update_submodule: true - test_args: --benchmark-max-time=0.00005 --benchmark-min-rounds=1 --benchmark-histogram=histogram/audio - cov: true - - check-result: - needs: [ruff-lint,test] - runs-on: ubuntu-latest - steps: - - run: echo "All success."