|
@@ -176,12 +176,13 @@ jobs:
|
|
|
app_id: ${{ secrets.SENTRY_INTERNAL_APP_ID }}
|
|
|
private_key: ${{ secrets.SENTRY_INTERNAL_APP_PRIVATE_KEY }}
|
|
|
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
|
|
|
- - uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 # v4.3.0
|
|
|
+ - uses: getsentry/action-setup-venv@64876d2bb1817c9bb6f391ad765677b109704af5 # v1.0.4
|
|
|
with:
|
|
|
python-version: 3.8.13
|
|
|
+ cache-depedency: requirements-dev-frozen.txt
|
|
|
+ install-cmd: pip install -q --constraint requirements-dev-frozen.txt pip-tools
|
|
|
- name: check requirements
|
|
|
run: |
|
|
|
- python -m pip install -q --constraint requirements-dev-frozen.txt pip-tools
|
|
|
python -S -m tools.freeze_requirements
|
|
|
if ! git diff --exit-code; then
|
|
|
echo $'\n\nrun `make freeze-requirements` locally to update requirements'
|
|
@@ -226,13 +227,13 @@ jobs:
|
|
|
- added|modified: '**/*.py'
|
|
|
- added|modified: 'requirements-*.txt'
|
|
|
|
|
|
- - uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 # v4.3.0
|
|
|
+ - uses: getsentry/action-setup-venv@64876d2bb1817c9bb6f391ad765677b109704af5 # v1.0.4
|
|
|
with:
|
|
|
python-version: 3.8.13
|
|
|
- cache: pip
|
|
|
cache-dependency-path: |
|
|
|
requirements-dev.txt
|
|
|
requirements-dev-frozen.txt
|
|
|
+ install-cmd: pip install -r requirements-dev.txt -c requirements-dev-frozen.txt
|
|
|
|
|
|
- uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
|
|
|
with:
|
|
@@ -245,7 +246,6 @@ jobs:
|
|
|
# We don't need pre-commit install --install-hooks since we're just interested
|
|
|
# in running the hooks.
|
|
|
run: |
|
|
|
- pip install -r requirements-dev.txt -c requirements-dev-frozen.txt
|
|
|
pre-commit install-hooks
|
|
|
|
|
|
- name: Run pre-commit on changed files
|
|
@@ -451,16 +451,11 @@ jobs:
|
|
|
steps:
|
|
|
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
|
|
|
|
|
|
- - name: Setup Python
|
|
|
- uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 # v4.3.0
|
|
|
+ - uses: getsentry/action-setup-venv@64876d2bb1817c9bb6f391ad765677b109704af5 # v1.0.4
|
|
|
with:
|
|
|
python-version: 3.8.13
|
|
|
- cache: pip
|
|
|
cache-dependency-path: requirements-dev-frozen.txt
|
|
|
-
|
|
|
- # We don't call setup-sentry, because we don't need devservices.
|
|
|
- - name: Setup backend typing
|
|
|
- run: pip install -r requirements-dev-frozen.txt
|
|
|
+ install-cmd: pip install -r requirements-dev-frozen.txt
|
|
|
|
|
|
- name: Run backend typing (${{ steps.setup.outputs.matrix-instance-number }} of ${{ strategy.job-total }})
|
|
|
run: make backend-typing
|