Skip to content

Fix test-build workflow #2

Fix test-build workflow

Fix test-build workflow #2

Workflow file for this run

name: Test and Build
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
jobs:
test-build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: latest
virtualenvs-create: true
virtualenvs-in-project: true
- name: Build asgardeo package
working-directory: ./packages/asgardeo
run: |
poetry install
poetry build
echo "asgardeo package built successfully"
- name: Build asgardeo-ai package
working-directory: ./packages/asgardeo-ai
run: |
poetry install
poetry build
echo "asgardeo-ai package built successfully"
- name: Upload asgardeo build artifacts
uses: actions/upload-artifact@v4
with:
name: asgardeo-dist-${{ matrix.python-version }}
path: packages/asgardeo/dist/
- name: Upload asgardeo-ai build artifacts
uses: actions/upload-artifact@v4
with:
name: asgardeo-ai-dist-${{ matrix.python-version }}
path: packages/asgardeo-ai/dist/