khoj/.github/workflows/test.yml
2022-08-03 20:25:15 +03:00

47 lines
No EOL
896 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
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- 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