From 85719a21998a20e58d6296af64f8455333896efd Mon Sep 17 00:00:00 2001 From: Falko Habel Date: Mon, 20 Jan 2025 15:46:36 +0100 Subject: [PATCH] added missing yaml files --- .gitea/embed.yaml | 37 +++++++++++++++++++++++++++++++++++++ .gitea/test.yaml | 35 +++++++++++++++++++++++++++++++++++ requirements-dev.txt | 0 3 files changed, 72 insertions(+) create mode 100644 .gitea/embed.yaml create mode 100644 .gitea/test.yaml create mode 100644 requirements-dev.txt diff --git a/.gitea/embed.yaml b/.gitea/embed.yaml new file mode 100644 index 0000000..8530b55 --- /dev/null +++ b/.gitea/embed.yaml @@ -0,0 +1,37 @@ +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: | + cd VectorLoader + python -m src.run --full diff --git a/.gitea/test.yaml b/.gitea/test.yaml new file mode 100644 index 0000000..d000616 --- /dev/null +++ b/.gitea/test.yaml @@ -0,0 +1,35 @@ +name: Gitea Actions For Tree-Structurer +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-dev.txt')}} + + restore-keys: | + ${{ runner.os }}-pip-model- + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements-dev.txt + - name: Run tests + run: | + pytest tests \ No newline at end of file diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 0000000..e69de29