Skip to content

Update LICENSE

Update LICENSE #154

Workflow file for this run

name: Run tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9] # Adjust this as necessary for other versions
steps:
- uses: actions/checkout@v3
- name: Set up Python and cache pip
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
cache: 'pip' # Enabling built-in pip caching
- name: Cache Python environment
uses: actions/[email protected]
id: env-cache
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-pythonenv-${{ matrix.python-version }}-${{ hashFiles('rag/requirements.txt') }}
- name: Install pip dependencies
if: steps.env-cache.outputs.cache-hit != 'true'
run: |
pip install -r rag/requirements.txt
- name: Cache pytest artifacts
uses: actions/[email protected]
with:
path: .pytest_cache
key: ${{ runner.os }}-pytest-${{ github.sha }}
- name: Set PYTHONPATH
run: echo "PYTHONPATH=${{ github.workspace }}" >> $GITHUB_ENV
- name: Run pytest
run: pytest tests --capture=no # Disable capturing to allow live logging