-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (28 loc) · 902 Bytes
/
unitttest.yml
File metadata and controls
33 lines (28 loc) · 902 Bytes
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
name: Unit Testing
on: [pull_request]
jobs:
unittest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10.12" # Replace with the version you need
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test HumanEval-X Evaluation
run: |
source ./env.sh
wget https://github.com/THUDM/CodeGeeX/raw/main/codegeex/benchmark/humaneval-x/rust/data/humaneval_rust.jsonl.gz
gzip -d humaneval_rust.jsonl.gz
mv humaneval_rust.jsonl data
python3 tests/test_humaneval.py
- name: Test OSS Evaluation
run: |
source ./env.sh
python3 tests/test_oss.py