update version #306
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#TODO: work with pip to install the package as the end-user would | |
# name: test app | |
# on: | |
# push: | |
# branches: | |
# - dev | |
# pull_request: | |
# branches: | |
# - dev | |
# jobs: | |
# build_frontend: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - name: Install bun | |
# run: npm install -g bun | |
# - name: Install frontend dependencies | |
# run: bun install | |
# working-directory: frontend | |
# - name: Build frontend | |
# run: bun run build | |
# working-directory: frontend | |
# - run: touch file1.txt | |
# - name: Archive frontend dist | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: frontend-dist | |
# path: frontend/dist | |
# build_backend: | |
# runs-on: ubuntu-latest | |
# needs: build_frontend | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - name: Create dist directory | |
# run: mkdir -p frontend/dist | |
# - name: Download frontend dist | |
# uses: actions/download-artifact@v4 | |
# with: | |
# name: frontend-dist | |
# path: frontend/dist | |
# - name: copy static files | |
# run: | | |
# cp -r frontend/dist/. backend/chatsky_ui/static/ | |
# - name: set up python 3.10 | |
# uses: actions/setup-python@v5 | |
# with: | |
# python-version: '3.10' | |
# - name: setup poetry and install dependencies | |
# run: | | |
# python -m pip install --upgrade pip poetry | |
# python -m poetry lock --no-update | |
# python -m poetry install --with lint --no-interaction | |
# working-directory: backend | |
# - name: build wheel | |
# run: python -m poetry build | |
# working-directory: backend | |
# - name: Archive backend dist | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: backend-dist | |
# path: backend/dist | |
# run_app: | |
# runs-on: ubuntu-latest | |
# needs: build_backend | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - name: set up python 3.10 | |
# uses: actions/setup-python@v5 | |
# with: | |
# python-version: '3.10' | |
# - name: setup chatsky-ui poetry and install dependencies | |
# run: | | |
# python -m pip install --upgrade pip poetry | |
# python -m poetry lock --no-update | |
# python -m poetry install --with lint --no-interaction | |
# working-directory: backend | |
# - name: Create new project | |
# run: | | |
# python -m poetry run chatsky.ui init --destination ../ --no-input --overwrite-if-exists | |
# working-directory: backend | |
# - name: Create dist directory | |
# run: mkdir -p backend/dist | |
# - name: Download backend dist | |
# uses: actions/download-artifact@v4 | |
# with: | |
# name: backend-dist | |
# path: backend/dist | |
# - name: setup project poetry and install dependencies | |
# run: | | |
# python -m pip install --upgrade pip poetry | |
# python -m poetry lock --no-update | |
# python -m poetry install --no-interaction | |
# working-directory: my_project | |
# - name: Run back & front | |
# run: | | |
# python -m poetry run chatsky.ui run_app & | |
# sleep 10 | |
# working-directory: my_project | |
# - name: Install bun | |
# run: npm install -g bun | |
# - name: Install frontend dependencies | |
# run: bun install | |
# working-directory: frontend | |
# - name: Cypress run | |
# uses: cypress-io/github-action@v6 | |
# with: | |
# install-command: bun add cypress | |
# command: bun run e2e:chrome | |
# working-directory: frontend | |
# browser: chrome |