relay-integration-test.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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-16.04
  12. timeout-minutes: 10
  13. steps:
  14. - uses: actions/checkout@v2
  15. - name: Check for python file changes
  16. uses: getsentry/paths-filter@v2
  17. id: changes
  18. with:
  19. token: ${{ github.token }}
  20. filters: .github/file-filters.yml
  21. # Until GH composite actions can use `uses`, we need to setup python here
  22. - uses: actions/setup-python@v2
  23. if: steps.changes.outputs.backend == 'true'
  24. with:
  25. python-version: 2.7.17
  26. - name: Setup pip
  27. uses: ./.github/actions/setup-pip
  28. id: pip
  29. if: steps.changes.outputs.backend == 'true'
  30. - name: pip cache
  31. uses: actions/cache@v2
  32. if: steps.changes.outputs.backend == 'true'
  33. with:
  34. path: ${{ steps.pip.outputs.pip-cache-dir }}
  35. key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements-*.txt') }}
  36. restore-keys: |
  37. ${{ runner.os }}-pip-
  38. - name: Setup sentry env
  39. uses: ./.github/actions/setup-sentry
  40. id: setup
  41. if: steps.changes.outputs.backend == 'true'
  42. with:
  43. python: 2
  44. snuba: true
  45. kafka: true
  46. - name: Pull relay image
  47. if: steps.changes.outputs.backend == 'true'
  48. run: |
  49. # pull relay we'll run and kill it for each test
  50. docker pull us.gcr.io/sentryio/relay:nightly
  51. docker ps -a
  52. - name: Run test
  53. if: steps.changes.outputs.backend == 'true'
  54. run: |
  55. make test-relay-integration