|
18 | 18 | CACHED_BUILD_PATHS: |
|
19 | 19 | ${{ github.workspace }}/dist-serverless
|
20 | 20 | jobs:
|
21 |
| - test-databases-latest: |
22 |
| - name: Databases (latest) |
23 |
| - timeout-minutes: 30 |
24 |
| - runs-on: ${{ matrix.os }} |
25 |
| - strategy: |
26 |
| - fail-fast: false |
27 |
| - matrix: |
28 |
| - python-version: ["3.7","3.8","3.11","3.12"] |
29 |
| - # python3.6 reached EOL and is no longer being supported on |
30 |
| - # new versions of hosted runners on Github Actions |
31 |
| - # ubuntu-20.04 is the last version that supported python3.6 |
32 |
| - # see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877 |
33 |
| - os: [ubuntu-20.04] |
34 |
| - services: |
35 |
| - postgres: |
36 |
| - image: postgres |
37 |
| - env: |
38 |
| - POSTGRES_PASSWORD: sentry |
39 |
| - # Set health checks to wait until postgres has started |
40 |
| - options: >- |
41 |
| - --health-cmd pg_isready |
42 |
| - --health-interval 10s |
43 |
| - --health-timeout 5s |
44 |
| - --health-retries 5 |
45 |
| - # Maps tcp port 5432 on service container to the host |
46 |
| - ports: |
47 |
| - - 5432:5432 |
48 |
| - env: |
49 |
| - SENTRY_PYTHON_TEST_POSTGRES_USER: postgres |
50 |
| - SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry |
51 |
| - SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test |
52 |
| - SENTRY_PYTHON_TEST_POSTGRES_HOST: localhost |
53 |
| - steps: |
54 |
| - |
55 |
| - - uses: actions/setup-python@v5 |
56 |
| - with: |
57 |
| - python-version: ${{ matrix.python-version }} |
58 |
| - - uses: getsentry/action-clickhouse-in-ci@v1 |
59 |
| - - name: Setup Test Env |
60 |
| - run: | |
61 |
| - pip install coverage "tox>=3,<4" |
62 |
| - psql postgresql://postgres:sentry@localhost:5432 -c "create database ${SENTRY_PYTHON_TEST_POSTGRES_NAME};" || true |
63 |
| - psql postgresql://postgres:sentry@localhost:5432 -c "grant all privileges on database ${SENTRY_PYTHON_TEST_POSTGRES_NAME} to ${SENTRY_PYTHON_TEST_POSTGRES_USER};" || true |
64 |
| - - name: Erase coverage |
65 |
| - run: | |
66 |
| - coverage erase |
67 |
| - - name: Test asyncpg latest |
68 |
| - run: | |
69 |
| - set -x # print commands that are executed |
70 |
| - ./scripts/runtox.sh "py${{ matrix.python-version }}-asyncpg-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch |
71 |
| - - name: Test clickhouse_driver latest |
72 |
| - run: | |
73 |
| - set -x # print commands that are executed |
74 |
| - ./scripts/runtox.sh "py${{ matrix.python-version }}-clickhouse_driver-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch |
75 |
| - - name: Test pymongo latest |
76 |
| - run: | |
77 |
| - set -x # print commands that are executed |
78 |
| - ./scripts/runtox.sh "py${{ matrix.python-version }}-pymongo-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch |
79 |
| - - name: Test redis latest |
80 |
| - run: | |
81 |
| - set -x # print commands that are executed |
82 |
| - ./scripts/runtox.sh "py${{ matrix.python-version }}-redis-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch |
83 |
| - - name: Test rediscluster latest |
84 |
| - run: | |
85 |
| - set -x # print commands that are executed |
86 |
| - ./scripts/runtox.sh "py${{ matrix.python-version }}-rediscluster-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch |
87 |
| - - name: Test sqlalchemy latest |
88 |
| - run: | |
89 |
| - set -x # print commands that are executed |
90 |
| - ./scripts/runtox.sh "py${{ matrix.python-version }}-sqlalchemy-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch |
91 |
| - - name: Generate coverage XML |
92 |
| - run: | |
93 |
| - coverage combine .coverage* |
94 |
| - coverage xml -i |
95 |
| - - uses: codecov/codecov-action@v4 |
96 |
| - with: |
97 |
| - token: ${{ secrets.CODECOV_TOKEN }} |
98 |
| - files: coverage.xml |
99 | 21 | test-databases-pinned:
|
100 | 22 | name: Databases (pinned)
|
101 | 23 | timeout-minutes: 30
|
|
133 | 55 | - uses: actions/setup-python@v5
|
134 | 56 | with:
|
135 | 57 | python-version: ${{ matrix.python-version }}
|
| 58 | + env: |
| 59 | + PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org" |
136 | 60 | - uses: getsentry/action-clickhouse-in-ci@v1
|
137 | 61 | - name: Setup Test Env
|
138 | 62 | run: |
|
|
0 commit comments