Skip to content

Bump black from 22.12.0 to 24.3.0 #54

Bump black from 22.12.0 to 24.3.0

Bump black from 22.12.0 to 24.3.0 #54

Workflow file for this run

name: CI
on: push
env:
PYTHON_VERSION: "3.10"
POETRY_VERSION: "1.3.2"
POETRY_HOME: "~/.poetry"
jobs:
linters:
name: "${{ matrix.linter }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
linter: ["isort", "black", "mypy", "flake8"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup project
uses: ./.github/actions/setup-project
- name: Run ${{ matrix.linter }}
run: make ${{ matrix.linter }}
pytest:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup project
uses: ./.github/actions/setup-project
- name: Run pytest
run: pytest -v
docker:
runs-on: ubuntu-latest
needs: [linters, pytest]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository }}
- name: Build docker image
uses: docker/build-push-action@v3
with:
push: ${{ startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}