Skip to content

move pytest from travis to github action #1

move pytest from travis to github action

move pytest from travis to github action #1

Workflow file for this run

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: Install required packages and start database
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
- 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: run pytest
run: |
pytest
- name: Stop database instance
run: |
pgdb stop