Skip to content

Fix g2p_model_path and add tests (#939) #523

Fix g2p_model_path and add tests (#939)

Fix g2p_model_path and add tests (#939) #523

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allow rebuilds via API.
repository_dispatch:
types: rebuild
concurrency:
group: run_tests-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
with:
fetch-depth: 0
- name: Check disk usage
run: df -h
- name: Install Conda environment with Micromamba
uses: conda-incubator/setup-miniconda@v3
with:
environment-file: github_environment.yml
miniforge-version: latest
- name: Check disk usage after environment install
run: df -h
- name: Configure mfa
shell: bash -l {0}
run: python -m montreal_forced_aligner configure --disable_auto_server
- name: Initialize database
shell: bash -l {0}
run: python -m montreal_forced_aligner server init -p test
- name: Check database config
shell: bash -l {0}
run: cat ~/Documents/MFA/pg_mfa_test/postgresql.conf
- name: Check init database log
shell: bash -l {0}
run: cat ~/Documents/MFA/pg_init_log_test.txt
- name: Check database start log
shell: bash -l {0}
run: cat ~/Documents/MFA/pg_log_test.txt
- name: Run tests
env:
GITHUB_TOKEN: ${{ secrets.MFA_GITHUB_TOKEN }}
shell: bash -l {0}
run: pytest -x ./tests
- name: Stop database
shell: bash -l {0}
run: python -m montreal_forced_aligner server stop -p test
- name: Check init database log
shell: bash -l {0}
run: cat ~/Documents/MFA/pg_init_log_test.txt
- name: Check database start log
shell: bash -l {0}
run: cat ~/Documents/MFA/pg_log_test.txt
- name: "Upload coverage to Codecov"
uses: "codecov/codecov-action@v3"
with:
file: ./coverage.xml
fail_ci_if_error: false