-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (47 loc) · 1.28 KB
/
full_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Full Test
on:
workflow_call:
inputs:
storage_handler:
required: true
type: string
content_retrieval_handler:
required: true
type: string
llm_handler:
required: true
type: string
env:
IMAGE_NAME: precis
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
env:
PRECIS_STORAGE_HANDLER: ${{ inputs.storage_handler }}
CONFIG_DIR: ${{ github.workspace }}/tests/integration/config
DATA_DIR: ${{ github.workspace }}/data
RSS_BASE_URL: http://localhost:8000
steps:
- name: checkout
uses: actions/checkout@v4
- name: install
run: |
pip install uv && uv venv
source .venv/bin/activate
make install-ci
- name: unit_test
run: |
source .venv/bin/activate
make unit-test
make clean
- name: integration_test
run: |
source .venv/bin/activate
mv tests/integration/config/settings-${{ inputs.content_retrieval_handler }}-${{ inputs.llm_handler}}.yml tests/integration/config/settings.yml
precis load-settings
precis load-feeds
precis check-feeds
make run-ci
make integration-test