diff --git a/.github/workflows/2.realtime_release.yml b/.github/workflows/2.realtime_release.yml index 6db71e06..9f97c8bb 100644 --- a/.github/workflows/2.realtime_release.yml +++ b/.github/workflows/2.realtime_release.yml @@ -4,8 +4,13 @@ name: Build realtime release on: workflow_dispatch: pull_request: + branches: + - main paths: - - "**.py" + - "**/*.py" + - "requirements.txt" + - "pyproject.toml" + - "uv.lock" jobs: build: diff --git a/.github/workflows/7.close_quality_pr.yml b/.github/workflows/7.close_quality_pr.yml index a7103292..2b307c67 100644 --- a/.github/workflows/7.close_quality_pr.yml +++ b/.github/workflows/7.close_quality_pr.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest permissions: pull-requests: write - if: "${{ startsWith(github.event.pull_request.title, '✨ Quality: ') }}" + if: "${{ startsWith(github.event.pull_request.title, '✨ Quality: ') || startsWith(github.event.pull_request.title, 'Security: ') }}" steps: - name: Close pull request uses: actions/github-script@v9 diff --git a/.github/workflows/8.test.yml b/.github/workflows/8.test.yml new file mode 100644 index 00000000..a45adc02 --- /dev/null +++ b/.github/workflows/8.test.yml @@ -0,0 +1,44 @@ +name: Tests + +on: + push: + branches: + - main + paths: + - "**/*.py" + - "requirements.txt" + - "pyproject.toml" + - "uv.lock" + + pull_request: + branches: + - main + paths: + - "**/*.py" + - "requirements.txt" + - "pyproject.toml" + - "uv.lock" + +jobs: + test: + name: Test + runs-on: windows-latest + + steps: + - name: Checkout code + uses: actions/checkout@v6 + + - name: Set up uv + uses: astral-sh/setup-uv@v8.1.0 + with: + version: "0.11.15" + python-version: "3.14.5" + enable-cache: true + cache-python: true + prune-cache: false + + - name: Install dependencies + run: uv sync --group dev + + - name: Run tests + run: uv run pytest tests/ -v --tb=short