Skip to content

refact(settings): store on database and manage changes #4

refact(settings): store on database and manage changes

refact(settings): store on database and manage changes #4

Workflow file for this run

name: Run Tests
on:
push:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
pip install .[dev]
- name: Download the model
run: |
pip install huggingface_hub
chmod +x ./scripts/get-hf-model.sh
./scripts/get-hf-model.sh "${{ vars.HF_MODEL_ID }}" "${{ vars.HF_GGUF_FILE }}"
- name: Test
run: |
pytest ./tests
code-style:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Run pre-commit to check code style
run: |
pip install pre-commit
pre-commit run --all-files