Skip to content

empty

empty #14

Workflow file for this run

name: Build
on:
push:
branches:
- '**'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:

Check failure on line 13 in .github/workflows/build.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yaml

Invalid workflow file

You have an error in your yaml syntax on line 13
- name: Install Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Checkout Repo
uses: actions/checkout@v4
- name: Set up Docker cache
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: buildx-${{ runner.os }}-${{ github.sha }}
restore-keys: |
buildx-${{ runner.os }}-
- name: Build Docker image
working-directory: ./app
run: |
docker buildx build \
--platform linux/amd64,linux/arm64 \
--cache-from type=local,src=/tmp/.buildx-cache \
--cache-to type=local,dest=/tmp/.buildx-cache \
.
test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Install poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Checkout Repo
uses: actions/checkout@v4
- name: Set up cache for Poetry dependencies
uses: actions/cache@v4
with:
path: ~/.cache/pypoetry
key: poetry-${{ hashFiles('app/poetry.lock') }}
- name: Install Python dependencies with Poetry
working-directory: ./app
run: poetry install --no-interaction --no-root
- name: Run intercom test
working-directory: ./app
run: poetry run python test_intercom.py