python-deps.yml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. name: python deps
  2. on:
  3. pull_request:
  4. paths:
  5. - '.github/actions/*'
  6. - '.github/workflows/python-deps.yml'
  7. - 'requirements*'
  8. jobs:
  9. # This workflow makes sure that Python dependencies install correctly for
  10. # a) our current version b) the next version we're targetting
  11. python-deps:
  12. name: install
  13. runs-on: ${{ matrix.os }}
  14. timeout-minutes: 20
  15. strategy:
  16. matrix:
  17. os: [macos-11.0, ubuntu-20.04]
  18. python-version: [3.6.13, 3.8.11]
  19. fail-fast: false
  20. env:
  21. PIP_DISABLE_PIP_VERSION_CHECK: on
  22. # There's a check that prevents make install-py-dev to work if the developer has not
  23. # explicitely set the intention to use a non-default Python version
  24. SENTRY_PYTHON_VERSION: ${{ matrix.python-version }}
  25. steps:
  26. - uses: actions/checkout@v2
  27. - name: Setup Python
  28. uses: ./.github/actions/setup-python
  29. - name: Install dependencies
  30. run: |
  31. python -m venv .venv
  32. source .venv/bin/activate
  33. make install-py-dev