mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 21:19:12 +00:00
Add, configure and run pre-commit locally and in test workflow
This commit is contained in:
11
.github/workflows/test.yml
vendored
11
.github/workflows/test.yml
vendored
@@ -9,6 +9,7 @@ on:
|
||||
- tests/**
|
||||
- config/**
|
||||
- pyproject.toml
|
||||
- .pre-commit-config.yml
|
||||
- .github/workflows/test.yml
|
||||
push:
|
||||
branches:
|
||||
@@ -18,6 +19,7 @@ on:
|
||||
- tests/**
|
||||
- config/**
|
||||
- pyproject.toml
|
||||
- .pre-commit-config.yml
|
||||
- .github/workflows/test.yml
|
||||
|
||||
jobs:
|
||||
@@ -45,9 +47,10 @@ jobs:
|
||||
python -m pip install --upgrade pip
|
||||
|
||||
- name: Install Application
|
||||
run: |
|
||||
pip install --upgrade .[dev]
|
||||
run: pip install --upgrade .[dev]
|
||||
|
||||
- name: Validate Application
|
||||
run: pre-commit
|
||||
|
||||
- name: Test Application
|
||||
run: |
|
||||
pytest
|
||||
run: pytest
|
||||
|
||||
Reference in New Issue
Block a user