|
22 | 22 | CACHED_BUILD_PATHS: | |
23 | 23 | ${{ github.workspace }}/dist-serverless |
24 | 24 | jobs: |
25 | | - test-web_1-latest: |
26 | | - name: Web 1 (latest) |
27 | | - timeout-minutes: 30 |
28 | | - runs-on: ${{ matrix.os }} |
29 | | - strategy: |
30 | | - fail-fast: false |
31 | | - matrix: |
32 | | - python-version: ["3.8","3.12","3.13"] |
33 | | - os: [ubuntu-22.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_HOST: localhost |
50 | | - SENTRY_PYTHON_TEST_POSTGRES_USER: postgres |
51 | | - SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry |
52 | | - steps: |
53 | | - |
54 | | - - uses: actions/setup-python@v5 |
55 | | - with: |
56 | | - python-version: ${{ matrix.python-version }} |
57 | | - allow-prereleases: true |
58 | | - - name: Setup Test Env |
59 | | - run: | |
60 | | - pip install "coverage[toml]" tox |
61 | | - - name: Erase coverage |
62 | | - run: | |
63 | | - coverage erase |
64 | | - - name: Test django latest |
65 | | - run: | |
66 | | - set -x # print commands that are executed |
67 | | - ./scripts/runtox.sh "py${{ matrix.python-version }}-django-latest" |
68 | | - - name: Test flask latest |
69 | | - run: | |
70 | | - set -x # print commands that are executed |
71 | | - ./scripts/runtox.sh "py${{ matrix.python-version }}-flask-latest" |
72 | | - - name: Test starlette latest |
73 | | - run: | |
74 | | - set -x # print commands that are executed |
75 | | - ./scripts/runtox.sh "py${{ matrix.python-version }}-starlette-latest" |
76 | | - - name: Test fastapi latest |
77 | | - run: | |
78 | | - set -x # print commands that are executed |
79 | | - ./scripts/runtox.sh "py${{ matrix.python-version }}-fastapi-latest" |
80 | | - - name: Generate coverage XML |
81 | | - if: ${{ !cancelled() }} |
82 | | - run: | |
83 | | - coverage combine .coverage-sentry-* |
84 | | - coverage xml |
85 | | - - name: Upload coverage to Codecov |
86 | | - if: ${{ !cancelled() }} |
87 | | - |
88 | | - with: |
89 | | - token: ${{ secrets.CODECOV_TOKEN }} |
90 | | - files: coverage.xml |
91 | | - # make sure no plugins alter our coverage reports |
92 | | - plugin: noop |
93 | | - verbose: true |
94 | | - - name: Upload test results to Codecov |
95 | | - if: ${{ !cancelled() }} |
96 | | - uses: codecov/test-results-action@v1 |
97 | | - with: |
98 | | - token: ${{ secrets.CODECOV_TOKEN }} |
99 | | - files: .junitxml |
100 | | - verbose: true |
101 | 25 | test-web_1-pinned: |
102 | 26 | name: Web 1 (pinned) |
103 | 27 | timeout-minutes: 30 |
|
0 commit comments