-
Notifications
You must be signed in to change notification settings - Fork 15
40 lines (33 loc) · 961 Bytes
/
pytest.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
name: pytest
on: push
jobs:
test:
runs-on: ubuntu-latest
env:
PGDB_HOME: ${{ github.workspace }}/pgdb_home
steps:
- name: Checkout main repository
uses: actions/checkout@v3
with:
repository: MontrealCorpusTools/PolyglotDB
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '21'
- 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=$(pwd)/praat_barren" >> $GITHUB_ENV
- name: Install required packages and run pytest
run: |
python -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -e .
pip install pyyaml setuptools pytest
pgdb install $PGDB_HOME
pgdb start
pytest
pgdb stop