-
Notifications
You must be signed in to change notification settings - Fork 14
86 lines (70 loc) · 2.29 KB
/
stress-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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: stress testing
on: push
jobs:
test:
runs-on: ubuntu-latest
env:
PGDB_HOME: ${{ github.workspace }}/pgdb_home # Use workspace directory
steps:
- name: Checkout main repository
uses: actions/checkout@v3
with:
repository: MontrealCorpusTools/PolyglotDB
- name: Set up Git for cloning
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
- name: Clone the private repository
run: |
git clone https://x-access-token:${{ secrets.PAT }}@github.com/MontrealCorpusTools/polyglotdb-testing.git testing
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
- name: Set environment variable for private repo root
run: echo "TEST_REPO_ROOT=$(pwd)/testing" >> $GITHUB_ENV
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
distribution: 'temurin' # This specifies the JDK distribution. Temurin is a popular choice.
java-version: '21'
- name: Install required packages
run: |
python -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -e .
pip install pyyaml setuptools pandas
pgdb install $PGDB_HOME
pgdb start
- name: Download and set up Praat
run: |
wget https://www.fon.hum.uva.nl/praat/praat6417_linux-intel64-barren.tar.gz -O praat.tar.gz
tar -xvzf praat.tar.gz
echo "praat_path=$(pwd)/praat_barren" >> $GITHUB_ENV
- name: Run duration.py
run: |
source venv/bin/activate
cd testing
python duration.py -r ice-can
python check_duration.py
- name: Run sibilant.py
run: |
source venv/bin/activate
cd testing
python sibilant.py -r ice-can
python check_sibilants.py
- name: Run formant.py
run: |
source venv/bin/activate
cd testing
python formant.py -r ice-can
python check_formants.py
- name: Run formant_track.py
run: |
source venv/bin/activate
cd testing
python formant_track.py -r ice-can
python check_formant_tracks.py