mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-30 19:03:01 +01:00
54 lines
No EOL
1 KiB
YAML
54 lines
No EOL
1 KiB
YAML
name: test
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- 'master'
|
|
paths:
|
|
- src/**
|
|
- tests/**
|
|
- config/**
|
|
- setup.py
|
|
- .github/workflows/test.yml
|
|
push:
|
|
branches:
|
|
- 'master'
|
|
paths:
|
|
- src/**
|
|
- tests/**
|
|
- config/**
|
|
- setup.py
|
|
- .github/workflows/test.yml
|
|
|
|
jobs:
|
|
test:
|
|
name: Run Tests
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
python_version:
|
|
- '3.8'
|
|
- '3.9'
|
|
- '3.10'
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: ${{ matrix.python_version }}
|
|
|
|
- name: Install Dependencies
|
|
run: |
|
|
sudo apt update && sudo apt install -y libegl1
|
|
python -m pip install --upgrade pip
|
|
pip install pytest
|
|
|
|
- name: Install Application
|
|
run: |
|
|
pip install --upgrade .
|
|
|
|
- name: Test Application
|
|
run: |
|
|
pytest |