/evals/.github/workflows/run_tests.yaml
1name: Run unit tests
2
3on:
4 pull_request:
5 branches:
6 - main
7 push:
8 branches:
9 - main
10
11jobs:
12 check_files:
13 runs-on: ubuntu-latest
14
15 steps:
16 - name: Checkout repository
17 uses: actions/checkout@v2
18 with:
19 fetch-depth: 0
20 lfs: true
21
22 - name: Set up Python
23 uses: actions/setup-python@v2
24 with:
25 python-version: 3.9
26
27 - name: Install dependencies
28 run: |
29 python -m pip install --upgrade pip
30 pip install pyyaml
31 pip install pytest
32 pip install -e .[torch]
33
34 - name: Run unit tests
35 env:
36 OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
37 run: |
38 pytest
39
1name: Run unit tests
2
3on:
4 pull_request:
5 branches:
6 - main
7 push:
8 branches:
9 - main
10
11jobs:
12 check_files:
13 runs-on: ubuntu-latest
14
15 steps:
16 - name: Checkout repository
17 uses: actions/checkout@v2
18 with:
19 fetch-depth: 0
20 lfs: true
21
22 - name: Set up Python
23 uses: actions/setup-python@v2
24 with:
25 python-version: 3.9
26
27 - name: Install dependencies
28 run: |
29 python -m pip install --upgrade pip
30 pip install pyyaml
31 pip install pytest
32 pip install -e .[torch]
33
34 - name: Run unit tests
35 env:
36 OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
37 run: |
38 pytest
39