relay-integration-test.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. name: relay integration
  2. on:
  3. push:
  4. branches:
  5. - master
  6. - releases/**
  7. pull_request:
  8. jobs:
  9. test:
  10. name: relay test
  11. runs-on: ubuntu-18.04
  12. timeout-minutes: 10
  13. strategy:
  14. matrix:
  15. python-version: [3.8.12]
  16. steps:
  17. - uses: actions/checkout@v2
  18. with:
  19. # Avoid codecov error message related to SHA resolution:
  20. # https://github.com/codecov/codecov-bash/blob/7100762afbc822b91806a6574658129fe0d23a7d/codecov#L891
  21. fetch-depth: '2'
  22. - name: Check for python file changes
  23. uses: getsentry/paths-filter@v2
  24. id: changes
  25. with:
  26. token: ${{ github.token }}
  27. filters: .github/file-filters.yml
  28. - name: Setup sentry env (python ${{ matrix.python-version }})
  29. uses: ./.github/actions/setup-sentry
  30. id: setup
  31. if: steps.changes.outputs.backend == 'true'
  32. with:
  33. python-version: ${{ matrix.python-version }}
  34. pip-cache-version: ${{ secrets.PIP_CACHE_VERSION }}
  35. snuba: true
  36. kafka: true
  37. - name: Pull relay image
  38. if: steps.changes.outputs.backend == 'true'
  39. run: |
  40. # pull relay we'll run and kill it for each test
  41. docker pull us.gcr.io/sentryio/relay:nightly
  42. docker ps -a
  43. - name: Run test
  44. if: steps.changes.outputs.backend == 'true'
  45. run: |
  46. make test-relay-integration
  47. - name: Handle artifacts
  48. uses: ./.github/actions/artifacts