-
Notifications
You must be signed in to change notification settings - Fork 173
54 lines (43 loc) · 1.49 KB
/
Copy pathpython_e2e_test.yml
File metadata and controls
54 lines (43 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: E2E Python Tests
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
permissions:
contents: read
defaults:
run:
working-directory: ./python
jobs:
e2e:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.10", "3.11", "3.12"]
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
with:
python-version: ${{ matrix.python }}
- name: Install uv
run: pip install uv
- name: Setup environment and install dependencies
run: |
make setup
make verify-env
make install
- name: Run E2E tests
env:
CDP_API_KEY_ID: ${{ secrets.CDP_API_KEY_ID }}
CDP_API_KEY_SECRET: ${{ secrets.CDP_API_KEY_SECRET }}
CDP_WALLET_SECRET: ${{ secrets.CDP_WALLET_SECRET }}
CDP_E2E_SMART_ACCOUNT_ADDRESS: ${{ vars.CDP_E2E_SMART_ACCOUNT_ADDRESS }}
CDP_E2E_SOLANA_RPC_URL: ${{ secrets.CDP_E2E_SOLANA_RPC_URL }}
DISABLE_CDP_ERROR_REPORTING: true
DISABLE_CDP_USAGE_TRACKING: true
run: uv run pytest cdp/test/test_e2e.py -v