Compare commits
2 Commits
64787cbffc
...
217a1f85d7
Author | SHA1 | Date |
---|---|---|
|
217a1f85d7 | |
|
83fce24a6a |
|
@ -0,0 +1,36 @@
|
||||||
|
name: Run VectorLoader Script
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Explore-Gitea-Actions:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: catthehacker/ubuntu:act-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v3
|
||||||
|
with:
|
||||||
|
python-version: '3.11.7'
|
||||||
|
|
||||||
|
- name: Clone additional repository
|
||||||
|
run: |
|
||||||
|
git config --global credential.helper cache
|
||||||
|
git clone https://fabel:${{ secrets.CICD }}@gitea.fabelous.app/fabel/VectorLoader.git
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
cd VectorLoader
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install -r requirements.txt
|
||||||
|
|
||||||
|
- name: Run vectorizing
|
||||||
|
env:
|
||||||
|
VECTORDB_TOKEN: ${{ secrets.VECTORDB_TOKEN }}
|
||||||
|
run: |
|
||||||
|
python -m src.run --full
|
|
@ -0,0 +1,37 @@
|
||||||
|
name: Gitea Actions For AIIA
|
||||||
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Explore-Gitea-Actions:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: catthehacker/ubuntu:act-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: '3.11.7'
|
||||||
|
|
||||||
|
- name: Cache pip and model
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.cache/pip
|
||||||
|
./fabel
|
||||||
|
key: ${{ runner.os }}-pip-model-${{ hashFiles('requirements.txt', 'requirements-dev.txt') }}
|
||||||
|
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-pip-model-
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install -r requirements.txt
|
||||||
|
pip install -r requirements-dev.txt
|
||||||
|
pip install -e .
|
||||||
|
- name: Run tests
|
||||||
|
run: |
|
||||||
|
pytest tests/
|
|
@ -0,0 +1 @@
|
||||||
|
pytest
|
Loading…
Reference in New Issue