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