relay-integration-test.yml 1.5 KB

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