Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
xKhronoz committed Jan 26, 2024
1 parent 3698e3e commit d3d08fa
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 22 deletions.
1 change: 1 addition & 0 deletions .github/workflows/check-file-size.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Check file size

on: # or directly `on: [push]` to run the action on every push on any branch
pull_request:
branches: [main]
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/node-js-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
name: Node.js Tests

on:
push:
branches: [ "main" ]
# push:
# branches: [ "main" ]
pull_request:
branches: [ "main" ]

Expand All @@ -20,9 +20,9 @@ jobs:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Test Build and Deploy

on:
push:
branches: [main]
# to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Build Node.js app
uses: ./.github/workflows/node-js-tests.yml
- name: Build Python package
uses: ./.github/workflows/python-tests.yml
- name: Sync to Deployment Fork
uses: ./.github/workflows/sync-to-deployment-fork.yml
- name: Sync to Hugging Face Hub Spaces
uses: ./.github/workflows/sync-to-hugging-face-hub.yml
9 changes: 4 additions & 5 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
name: Python Tests

on:
push:
branches: [ "main" ]
# push:
# branches: [ "main" ]
pull_request:
branches: [ "main" ]

Expand All @@ -17,7 +17,7 @@ jobs:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Set up Python 3.11
Expand All @@ -31,8 +31,7 @@ jobs:
run: |
# python -m pip install --upgrade pip setuptools wheel
# python -m pip install poetry
poetry install --without dev,torch-cuda
poetry add flake8 pytest
poetry install --without torch-cuda
- name: Lint with flake8
working-directory: ./backend
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/sync-to-deployment-fork.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Sync to Deployment Fork
on:
push:
branches:
- main
# push:
# branches: [main]
# schedule:
# - cron: '*/30 * * * *' # every 30 minutes
workflow_dispatch: # on button click
# to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
sync-deployment-fork:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/sync-to-hugging-face-hub.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Sync to Hugging Face hub
on:
push:
branches: [main]

# push:
# branches: [main]
# to run this workflow manually from the Actions tab
workflow_dispatch:

Expand Down
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,19 @@ pinned: false
[![GitHub Pull Requests](https://img.shields.io/github/issues-pr/digitalbuiltenvironment/Smart-Retrieval.svg)](https://github.com/digitalbuiltenvironment/Smart-Retrieval/pulls)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](/LICENSE)

---
<h4>Pipeline Status:</h4>

[![Test Build and Deploy](https://github.com/digitalbuiltenvironment/Smart-Retrieval/actions/workflows/pipeline.yml/badge.svg)](https://github.com/digitalbuiltenvironment/Smart-Retrieval/actions/workflows/pipeline.yml)

</div>

---

<p align="center"> A Large Language Model (LLM) powered platform for information retrieval.
<br>
<p align="center">
<br>
A Large Language Model (LLM) powered platform for information retrieval.
<br>
</p>

## 📝 Table of Contents
Expand All @@ -52,12 +59,11 @@ Project files bootstrapped with [`create-llama`](https://github.com/run-llama/Ll

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See [deployment](#deployment) for notes on how to deploy the project on a live system.

1) First, startup the backend as described in the [backend README](./backend/README.md).

2) Second, run the development server of the frontend as described in the [frontend README](./frontend/README.md).
1. First, startup the backend as described in the [backend README](./backend/README.md).

3) Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
2. Second, run the development server of the frontend as described in the [frontend README](./frontend/README.md).

3. Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

## 🚀 Deployment <a name = "deployment"></a>

Expand Down
2 changes: 2 additions & 0 deletions backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ docx2txt = "^0.8"

# Dev Dependencies here
[tool.poetry.group.dev.dependencies]
flake8 = "^7.0.0"
pytest = "^7.4.4"

# For CPU torch version: Windows and Linux
[tool.poetry.group.torch-cpu.dependencies]
Expand Down

0 comments on commit d3d08fa

Please sign in to comment.