Skip to content

[Snyk] Security upgrade python from 3.11.1-slim-bullseye to 3.11.9-slim-bullseye #2387

[Snyk] Security upgrade python from 3.11.1-slim-bullseye to 3.11.9-slim-bullseye

[Snyk] Security upgrade python from 3.11.1-slim-bullseye to 3.11.9-slim-bullseye #2387

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
merge_group:
types: [checks_requested]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
test:
strategy:
matrix:
include:
- name: Tests
command: bin/tests --postgresql-host localhost
- name: Lint
command: bin/lint
- name: Documentation
command: bin/docs
- name: Dependencies
command: bin/github-actions-deps
- name: Licenses
command: bin/licenses
- name: Translations
command: bin/translations
runs-on: ubuntu-latest
services:
postgres:
image: postgres:14.4
ports:
- 5432:5432
env:
POSTGRES_HOST_AUTH_METHOD: trust # never do this in production!
# Set health checks to wait until postgres has started
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
stripe:
image: stripe/stripe-mock:v0.140.0
ports:
- 12111:12111
name: ${{ matrix.name }}
env:
BILLING_BACKEND: warehouse.subscriptions.services.MockStripeBillingService api_base=http://localhost:12111 api_version=2020-08-27
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Install platform dependencies
run: |
sudo apt -y update
sudo apt -y install libcurl4-openssl-dev libssl-dev pkg-config
- uses: actions/setup-python@v4
with:
python-version-file: '.python-version'
cache: 'pip'
cache-dependency-path: |
requirements.txt
requirements/*.txt
- name: Cache common Python cache paths
uses: actions/cache@v3
with:
path: |
.cache
.mypy_cache
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt', 'requirements/lint.txt') }}
- name: Install Python dependencies
run: |
pip install -U pip setuptools wheel
pip install -r requirements.txt --no-deps
pip install -r requirements/dev.txt
pip check
- name: Run ${{ matrix.name }}
run: ${{ matrix.command }}