1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- name: python deps
- on:
- pull_request:
- paths:
- - '.github/actions/setup-python/action.yml'
- - '.github/workflows/python-deps.yml'
- - 'requirements-*.txt'
- jobs:
- # This workflow makes sure that Python dependencies install correctly for
- # a) our current version b) the next version we're targetting
- python-deps:
- name: install
- runs-on: ${{ matrix.os }}
- timeout-minutes: 20
- strategy:
- matrix:
- os: [macos-11.0, ubuntu-20.04]
- python-version: [3.6.13, 3.8.12]
- fail-fast: false
- env:
- PIP_DISABLE_PIP_VERSION_CHECK: on
- # There's a check that prevents make install-py-dev to work if the developer has not
- # explicitely set the intention to use a non-default Python version
- SENTRY_PYTHON_VERSION: ${{ matrix.python-version }}
- steps:
- - uses: actions/checkout@v2
- - name: Install prerequisites
- env:
- HOMEBREW_NO_AUTO_UPDATE: on
- # Necessary packages for some Python deps
- run: |
- brew install libxmlsec1
- - name: Setup Python
- uses: ./.github/actions/setup-python
- with:
- # Non-default value since install-py-dev installs all requirements files
- # We also want to bust the cache if the action and workflow change
- cache-files-hash: ${{ hashFiles('requirements-*.txt', '.github/actions/setup-python/action.yml', '.github/workflows/python-deps.yml') }}
- - name: Install dependencies
- run: |
- python -m venv .venv
- source .venv/bin/activate
- make install-py-dev
- # This exercises the requirements-pre-commit.txt file
- make setup-git
|