Skip to content

Bump google-auth from 2.21.0 to 2.33.0 #1148

Bump google-auth from 2.21.0 to 2.33.0

Bump google-auth from 2.21.0 to 2.33.0 #1148

Workflow file for this run

name: Django application
on: [push]
jobs:
docker_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build docker
run: docker compose build
- name: Run ruff
run: docker compose run django ruff check styleguide_example/
- name: Run mypy
run: docker compose run django mypy --config mypy.ini styleguide_example/
- name: Run tests
run: docker compose run django py.test
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:latest
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: github_actions
ports:
- 5432:5432
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.12.4
cache: "pip"
cache-dependency-path: |
requirements/local.txt
requirements/base.txt
# This is a more aggresive cache.
# The one above caches the wheel files, but still runs the installation for them
# While the cache below caches the entire Python directory.
- name: Cache pip
uses: actions/cache@v4
with:
path: /opt/hostedtoolcache/Python/3.12.4/x64/ # This path is specific to Ubuntu
key: python-${{ hashFiles('requirements/local.txt') }}-${{ hashFiles('requirements/base.txt') }}
- name: Install dependencies
run: pip install -r requirements/local.txt
- name: Run ruff
run: ruff check .
- name: Type check
run: mypy --config mypy.ini styleguide_example/
- name: Run tests
run: pytest
deploy_to_heroku:
runs-on: ubuntu-latest
needs: build
# The project is currently hosted on render.com
if: false
steps:
- uses: actions/checkout@v4
with:
fetch-depth: "0"
- name: Deploy to Heroku
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
HEROKU_APP_NAME: "hacksoft-styleguide-example"
run: git push --force https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git origin/master:master