command-line-test.yml 971 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. name: command line
  2. on:
  3. push:
  4. branches:
  5. - master
  6. pull_request:
  7. jobs:
  8. test:
  9. name: cli test
  10. runs-on: ubuntu-18.04
  11. timeout-minutes: 10
  12. strategy:
  13. matrix:
  14. python-version: [3.8.12]
  15. steps:
  16. - uses: actions/checkout@v2
  17. - name: Check for python file changes
  18. uses: getsentry/paths-filter@v2
  19. id: changes
  20. with:
  21. token: ${{ github.token }}
  22. filters: .github/file-filters.yml
  23. - name: Setup sentry env (python ${{ matrix.python-version }})
  24. uses: ./.github/actions/setup-sentry
  25. id: setup
  26. if: steps.changes.outputs.backend == 'true'
  27. with:
  28. python-version: ${{ matrix.python-version }}
  29. pip-cache-version: ${{ secrets.PIP_CACHE_VERSION }}
  30. - name: Run test
  31. if: steps.changes.outputs.backend == 'true'
  32. run: |
  33. make test-cli
  34. - name: Handle artifacts
  35. uses: ./.github/actions/artifacts