123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- name: relay integration
- on:
- push:
- branches:
- - master
- - releases/**
- pull_request:
- jobs:
- test:
- name: relay test
- runs-on: ubuntu-18.04
- timeout-minutes: 10
- strategy:
- matrix:
- python-version: [3.8.12]
- steps:
- - uses: actions/checkout@v2
- with:
- # Avoid codecov error message related to SHA resolution:
- # https://github.com/codecov/codecov-bash/blob/7100762afbc822b91806a6574658129fe0d23a7d/codecov#L891
- fetch-depth: '2'
- - name: Check for python file changes
- uses: getsentry/paths-filter@v2
- id: changes
- with:
- token: ${{ github.token }}
- filters: .github/file-filters.yml
- - name: Setup sentry env (python ${{ matrix.python-version }})
- uses: ./.github/actions/setup-sentry
- id: setup
- if: steps.changes.outputs.backend == 'true'
- with:
- python-version: ${{ matrix.python-version }}
- pip-cache-version: ${{ secrets.PIP_CACHE_VERSION }}
- snuba: true
- kafka: true
- - name: Pull relay image
- if: steps.changes.outputs.backend == 'true'
- run: |
- # pull relay we'll run and kill it for each test
- docker pull us.gcr.io/sentryio/relay:nightly
- docker ps -a
- - name: Run test
- if: steps.changes.outputs.backend == 'true'
- run: |
- make test-relay-integration
- - name: Handle artifacts
- uses: ./.github/actions/artifacts
|