-
Notifications
You must be signed in to change notification settings - Fork 479
59 lines (49 loc) · 1.47 KB
/
citest.yaml
File metadata and controls
59 lines (49 loc) · 1.47 KB
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
name: citest
on:
push:
branches:
- main
- "release/**"
paths-ignore:
- "setup.*"
- "requirements.txt"
- "requirements/*"
- "README.md"
- ".github/workflows/lint.yaml"
- ".github/workflows/publish.yaml"
pull_request:
paths-ignore:
- "setup.*"
- "requirements.txt"
- "requirements/*"
- "README.md"
- ".github/workflows/lint.yaml"
- ".github/workflows/publish.yaml"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
unittest:
# The type of runner that the job will run on
runs-on: self-hosted
timeout-minutes: 60
environment: testci
steps:
- uses: actions/checkout@v4
# Add a step to check if it's a fork and set an environment variable
- name: Check if PR is from a fork
run: echo "IS_FORKED_PR=${{ github.event.pull_request.head.repo.fork }}" >> $GITHUB_ENV
- name: Update pip
run: pip install --upgrade pip
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: pip install -r requirements.txt
- name: Install DeepResearch Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: pip install -r requirements/research.txt
- name: Install Code Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: pip install -r requirements/code.txt
- name: Run tests
shell: bash
run: bash .dev_scripts/dockerci.sh