Skip to content

Fixed test path and temp. disabled build #18

Fixed test path and temp. disabled build

Fixed test path and temp. disabled build #18

Workflow file for this run

name: Build & Test
on: [push]
# release:
# types: [published]
#jobs:
# build-api:
# runs-on: ubuntu-latest
# outputs:
# imagename: ${{ steps.image.name }}
# steps:
# - name: 'Checkout GitHub Action'
# uses: actions/checkout@main
# - name: 'Login to GitHub Container Registry'
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{github.actor}}
# password: ${{secrets.GITHUB_TOKEN}}
# - name: 'Build API image'
# id: image
# run: |
# docker build backend/ \
# --tag ghcr.io/${GITHUB_REPOSITORY,,}/api:${GITHUB_REF_NAME,,} \
# --tag ghcr.io/${GITHUB_REPOSITORY,,}/api:latest
# docker push ghcr.io/${GITHUB_REPOSITORY,,}/api:${GITHUB_REF_NAME,,}
# docker push ghcr.io/${GITHUB_REPOSITORY,,}/api:latest
# echo "name=ghcr.io/${GITHUB_REPOSITORY,,}/api:${GITHUB_REF_NAME,,}" >> $GITHUB_OUTPUT
# build-ui:
# runs-on: ubuntu-latest
# steps:
# - name: 'Checkout GitHub Action'
# uses: actions/checkout@main
# - name: 'Login to GitHub Container Registry'
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{github.actor}}
# password: ${{secrets.GITHUB_TOKEN}}
# - name: 'Build UI image'
# run: |
# docker build frontend/ \
# --tag ghcr.io/${GITHUB_REPOSITORY,,}/ui:${GITHUB_REF_NAME,,} \
# --tag ghcr.io/${GITHUB_REPOSITORY,,}/ui:latest
# docker push ghcr.io/${GITHUB_REPOSITORY,,}/ui:${GITHUB_REF_NAME,,}
# docker push ghcr.io/${GITHUB_REPOSITORY,,}/ui:latest
jobs:
test:

Check failure on line 47 in .github/workflows/on_tag.yml

View workflow run for this annotation

GitHub Actions / Build & Test

Invalid workflow file

The workflow is not valid. .github/workflows/on_tag.yml (Line: 47, Col: 3): The workflow must contain at least one job with no dependencies.
needs: build-api
runs-on: ubuntu-latest
container: ghcr.io/suse/aimaas/api:latest
services:
postgres:
image: postgres:latest
env:
POSTGRES_DB: test_aimaas
POSTGRES_USER: aimaas
POSTGRES_PASSWORD: password
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
pip install -r backend/requirements_test.txt
- name: Test
run: |
pytest /opt/aimaas/backend/tests/
env:
PG_USER: aimaas
PG_PASSWORD: password
PG_HOST: postgres
PG_PORT: 5432
PG_DB: aimaas