Update stress-test.yml #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |