Skip to content

build(deps): bump starlette from 0.25.0 to 0.31.0 #106

build(deps): bump starlette from 0.25.0 to 0.31.0

build(deps): bump starlette from 0.25.0 to 0.31.0 #106

Workflow file for this run

name: "Publish"
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
checks:
name: Run checks
strategy:
matrix:
python-version: ["3.10", "3.11"]
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install Poetry
run: pipx install poetry
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: poetry
- name: Set up Python environment
run: |
poetry env use ${{ matrix.python-version }}
poetry install
- name: Run type checks
run: make typecheck
- name: Run Lighthouse URL checks
uses: treosh/lighthouse-ci-action@v10
with:
uploadArtifacts: true
runs: 3
release-please:
name: Execute release chores
runs-on: ubuntu-latest
needs: checks
outputs:
created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: python
package-name: derdiedas
extra-files: |
index.html
build-and-push-image:
name: Build Docker image and push to GitHub Container Registry
runs-on: ubuntu-latest
needs: release-please
if: ${{ needs.release-please.outputs.created }}
permissions:
contents: read
packages: write
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log in to the container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=semver,value=${{ needs.release-please.outputs.tag_name }},pattern={{version}}
type=semver,value=${{ needs.release-please.outputs.tag_name }},pattern={{major}}.{{minor}}
type=semver,value=${{ needs.release-please.outputs.tag_name }},pattern={{major}},enable=${{ !startsWith(needs.release-please.outputs.tag_name, 'v0.') }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}