-
Notifications
You must be signed in to change notification settings - Fork 21
62 lines (50 loc) · 1.7 KB
/
_scheduled_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
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Scheduled tests
run-name: langchain-nvidia Scheduled tests
on:
workflow_dispatch:
schedule:
- cron: '0 8 * * *'
env:
POETRY_VERSION: "1.7.1"
jobs:
build:
name: Python ${{ matrix.python-version }} - ${{ matrix.working-directory }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- "3.8"
- "3.11"
working-directory:
- "libs/ai-endpoints"
- "libs/trt"
steps:
- uses: actions/checkout@v4
- name: Set up Python + Poetry ${{ env.POETRY_VERSION }}
uses: "./.github/actions/poetry_setup"
with:
python-version: ${{ matrix.python-version }}
poetry-version: ${{ env.POETRY_VERSION }}
working-directory: ${{ matrix.working-directory }}
cache-key: scheduled
- name: Install dependencies
run: poetry install --with test,test_integration
working-directory: ${{ matrix.working-directory }}
- name: Run unit tests
run: make tests
working-directory: ${{ matrix.working-directory }}
- name: Run integration tests
env:
NVIDIA_API_KEY: ${{ secrets.NVIDIA_API_KEY }}
run: make integration_tests
working-directory: ${{ matrix.working-directory }}
- name: Ensure the tests did not create any additional files
working-directory: ${{ matrix.working-directory }}
run: |
set -eu
STATUS="$(git status)"
echo "$STATUS"
# grep will exit non-zero if the target message isn't found,
# and `set -e` above will cause the step to fail.
echo "$STATUS" | grep 'nothing to commit, working tree clean'