From 648ae8053b8c379eacb8b4476577a4abe4a9aead Mon Sep 17 00:00:00 2001 From: Urvish Lanje Date: Wed, 8 Apr 2026 09:18:04 +0200 Subject: [PATCH] ci: run python provider tests in pr-checks (#477) * Add WakaTime extension to devcontainer configuration * ci: run python provider tests in pr-checks * Delete .devcontainer directory * ci: added requirements.txt for pip caching * ci: addressed security and mainenance issues * ci: updated release tag * Update .github/workflows/pr-checks.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * ci: added full commit SHA for python setup --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/pr-checks.yml | 13 +++++++++++++ python/requirements.txt | 3 +++ 2 files changed, 16 insertions(+) create mode 100644 python/requirements.txt diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 2859e00a..54290fc3 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -29,6 +29,13 @@ jobs: with: bun-version: 1.3.11 + - name: Set up Python + uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0 + with: + python-version: "3.12" + cache: "pip" + cache-dependency-path: python/requirements.txt + - name: Install dependencies run: bun install --frozen-lockfile @@ -38,6 +45,12 @@ jobs: - name: Full unit test suite run: bun test --max-concurrency=1 + - name: Install Python test dependencies + run: python -m pip install -r python/requirements.txt + + - name: Python unit tests + run: python -m pytest -q python/tests + - name: Suspicious PR intent scan run: bun run security:pr-scan -- --base ${{ github.event.pull_request.base.sha || 'origin/main' }} - name: Provider tests diff --git a/python/requirements.txt b/python/requirements.txt new file mode 100644 index 00000000..715ac94f --- /dev/null +++ b/python/requirements.txt @@ -0,0 +1,3 @@ +pytest==7.4.4 +pytest-asyncio==0.23.3 +httpx==0.25.2 \ No newline at end of file