-
Notifications
You must be signed in to change notification settings - Fork 16
41 lines (38 loc) · 1.3 KB
/
run_tests.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
name: Tests
on: [push]
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Cache pip dependencies
uses: actions/cache@v3
with:
path: /home/runner/.cache/pip/
key: files-${{ hashFiles('requirements.txt') }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Cache DFA mask store
uses: actions/cache@v3
with:
path: /home/runner/work/syncode/syncode/cache/mask_stores/
key: files-${{ hashFiles('syncode/parsers/grammars/python_grammar.lark', 'syncode/dfa_mask_store.py') }}
- name: Run Tests
run: |
python3 -m unittest tests.test_misc
python3 -m unittest tests.test_grammar_go
python3 -m unittest tests.test_grammar_sql
python3 -m unittest tests.test_grammar_python
python3 -m unittest tests.test_grammar_json
python3 -m unittest tests.test_grammar_java
python3 -m unittest tests.test_language_model
python3 -m unittest tests.test_lr_parser
python3 -m unittest tests.test_syncode