mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
50 lines
No EOL
1,023 B
YAML
50 lines
No EOL
1,023 B
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:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.7", "3.8", "3.9", "3.10"]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install System Dependencies
|
|
shell: bash -l {0}
|
|
run: sudo apt-get -y install libimage-exiftool-perl
|
|
|
|
- name: Install Python Dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install pytest
|
|
pip install -upgrade .
|
|
|
|
- name: Test with pytest
|
|
run: |
|
|
pytest |