-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (36 loc) · 1.24 KB
/
get_function_data_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
name: Python Test Workflow
on:
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
path: 'functionRetriever' # Specify a path for the main repo
- name: Clone testRepo repository
run: |
mkdir -p ${{ github.workspace }}/inputData # Create inputData directory
git clone https://github.com/RapidReview-ai/testRepo ${{ github.workspace }}/inputData/testRepo
- name: Create outputData directory
run: mkdir -p ${{ github.workspace }}/functionRetriever/outputData
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: '3.11.1'
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18.12.1'
- name: Install npm dependencies
run: npm install
working-directory: ${{ github.workspace }}/functionRetriever
- name: Install Python dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
working-directory: ${{ github.workspace }}/functionRetriever
- name: Run tests
run: python test_get_function_data.py
working-directory: ${{ github.workspace }}/functionRetriever