Skip to content

Commit

Permalink
Workflows install and cache dependencies, use poetry (JoFrhwld#83)
Browse files Browse the repository at this point in the history
* Update workflows to install package dependencies like numpy for use in tests
* Cache installed dependencies so that future runs are faster
* Upgrade setup-python to v4 from v3
  • Loading branch information
chrisbrickhouse committed Mar 13, 2024
1 parent 6049041 commit 036094d
Show file tree
Hide file tree
Showing 67 changed files with 708 additions and 377 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/test-and-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,24 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
poetry env use "${{ matrix.python-version }}"
poetry install
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
poetry run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
python -m pytest tests/
poetry run pytest tests/
Binary file modified docs/_build/doctrees/code/align/aligner.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/code/align/index.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/code/align/transcriptprocessor.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/code/cmudictionary.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/code/extract/esps.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/code/extract/index.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/code/extract/mahalanobis.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/code/extract/plotnik.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/code/extract/remeasure.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/code/extract/vowel.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/code/praat.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/_build/doctrees/index.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/usage/installation.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/usage/quickstart.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/_build/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: a9e501948c645bf032c7e86e32c92cb5
config: 8745e4e4f0df8712ab397deb6ddc5d88
tags: 645f666f9bcd5a90fca523b33c5a78b7
2 changes: 1 addition & 1 deletion docs/_build/html/_static/documentation_options.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: '2.0.1',
VERSION: '2.0.2-dev',
LANGUAGE: 'None',
COLLAPSE_INDEX: false,
BUILDER: 'html',
Expand Down
8 changes: 4 additions & 4 deletions docs/_build/html/code/align/aligner.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

<title>FAVE Aligner module &#8212; Forced Alignment and Vowel Extraction (FAVE) 2.0.1 documentation</title>
<title>FAVE Aligner module &#8212; Forced Alignment and Vowel Extraction (FAVE) 2.0.2-dev documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../../_static/pyramid.css" />
<script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script>
Expand Down Expand Up @@ -40,7 +40,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="index.html" title="FAVE Align module"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="../../index.html">Forced Alignment and Vowel Extraction (FAVE) 2.0.1 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../index.html">Forced Alignment and Vowel Extraction (FAVE) 2.0.2-dev documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../index.html" >Module documentation</a> &#187;</li>
<li class="nav-item nav-item-2"><a href="index.html" accesskey="U">FAVE Align module</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">FAVE Aligner module</a></li>
Expand Down Expand Up @@ -128,7 +128,7 @@ <h4>Next topic</h4>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../../_sources/code/align/aligner.rst.txt"
<li><a href="../../_sources/code/align/aligner.md.txt"
rel="nofollow">Show Source</a></li>
</ul>
</div>
Expand Down Expand Up @@ -161,7 +161,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="index.html" title="FAVE Align module"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="../../index.html">Forced Alignment and Vowel Extraction (FAVE) 2.0.1 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../index.html">Forced Alignment and Vowel Extraction (FAVE) 2.0.2-dev documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../index.html" >Module documentation</a> &#187;</li>
<li class="nav-item nav-item-2"><a href="index.html" >FAVE Align module</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">FAVE Aligner module</a></li>
Expand Down
8 changes: 4 additions & 4 deletions docs/_build/html/code/align/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

<title>FAVE Align module &#8212; Forced Alignment and Vowel Extraction (FAVE) 2.0.1 documentation</title>
<title>FAVE Align module &#8212; Forced Alignment and Vowel Extraction (FAVE) 2.0.2-dev documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../../_static/pyramid.css" />
<script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script>
Expand Down Expand Up @@ -40,7 +40,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="../index.html" title="Module documentation"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="../../index.html">Forced Alignment and Vowel Extraction (FAVE) 2.0.1 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../index.html">Forced Alignment and Vowel Extraction (FAVE) 2.0.2-dev documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../index.html" accesskey="U">Module documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">FAVE Align module</a></li>
</ul>
Expand Down Expand Up @@ -83,7 +83,7 @@ <h4>Next topic</h4>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../../_sources/code/align/index.rst.txt"
<li><a href="../../_sources/code/align/index.md.txt"
rel="nofollow">Show Source</a></li>
</ul>
</div>
Expand Down Expand Up @@ -116,7 +116,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="../index.html" title="Module documentation"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="../../index.html">Forced Alignment and Vowel Extraction (FAVE) 2.0.1 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../index.html">Forced Alignment and Vowel Extraction (FAVE) 2.0.2-dev documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../index.html" >Module documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">FAVE Align module</a></li>
</ul>
Expand Down
8 changes: 4 additions & 4 deletions docs/_build/html/code/align/transcriptprocessor.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

<title>FAVE TranscriptProcessor module &#8212; Forced Alignment and Vowel Extraction (FAVE) 2.0.1 documentation</title>
<title>FAVE TranscriptProcessor module &#8212; Forced Alignment and Vowel Extraction (FAVE) 2.0.2-dev documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../../_static/pyramid.css" />
<script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script>
Expand Down Expand Up @@ -40,7 +40,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="aligner.html" title="FAVE Aligner module"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="../../index.html">Forced Alignment and Vowel Extraction (FAVE) 2.0.1 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../index.html">Forced Alignment and Vowel Extraction (FAVE) 2.0.2-dev documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../index.html" >Module documentation</a> &#187;</li>
<li class="nav-item nav-item-2"><a href="index.html" accesskey="U">FAVE Align module</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">FAVE TranscriptProcessor module</a></li>
Expand Down Expand Up @@ -124,7 +124,7 @@ <h4>Next topic</h4>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../../_sources/code/align/transcriptprocessor.rst.txt"
<li><a href="../../_sources/code/align/transcriptprocessor.md.txt"
rel="nofollow">Show Source</a></li>
</ul>
</div>
Expand Down Expand Up @@ -157,7 +157,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="aligner.html" title="FAVE Aligner module"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="../../index.html">Forced Alignment and Vowel Extraction (FAVE) 2.0.1 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../index.html">Forced Alignment and Vowel Extraction (FAVE) 2.0.2-dev documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../index.html" >Module documentation</a> &#187;</li>
<li class="nav-item nav-item-2"><a href="index.html" >FAVE Align module</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">FAVE TranscriptProcessor module</a></li>
Expand Down
8 changes: 4 additions & 4 deletions docs/_build/html/code/cmudictionary.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

<title>FAVE CMU Dictionary module &#8212; Forced Alignment and Vowel Extraction (FAVE) 2.0.1 documentation</title>
<title>FAVE CMU Dictionary module &#8212; Forced Alignment and Vowel Extraction (FAVE) 2.0.2-dev documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../_static/pyramid.css" />
<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script>
Expand Down Expand Up @@ -40,7 +40,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="extract/vowel.html" title="FAVE Vowel module"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="../index.html">Forced Alignment and Vowel Extraction (FAVE) 2.0.1 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../index.html">Forced Alignment and Vowel Extraction (FAVE) 2.0.2-dev documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="index.html" accesskey="U">Module documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">FAVE CMU Dictionary module</a></li>
</ul>
Expand Down Expand Up @@ -154,7 +154,7 @@ <h4>Next topic</h4>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../_sources/code/cmudictionary.rst.txt"
<li><a href="../_sources/code/cmudictionary.md.txt"
rel="nofollow">Show Source</a></li>
</ul>
</div>
Expand Down Expand Up @@ -187,7 +187,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="extract/vowel.html" title="FAVE Vowel module"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="../index.html">Forced Alignment and Vowel Extraction (FAVE) 2.0.1 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../index.html">Forced Alignment and Vowel Extraction (FAVE) 2.0.2-dev documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="index.html" >Module documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">FAVE CMU Dictionary module</a></li>
</ul>
Expand Down
8 changes: 4 additions & 4 deletions docs/_build/html/code/extract/esps.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

<title>FAVE esps module &#8212; Forced Alignment and Vowel Extraction (FAVE) 2.0.1 documentation</title>
<title>FAVE esps module &#8212; Forced Alignment and Vowel Extraction (FAVE) 2.0.2-dev documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../../_static/pyramid.css" />
<script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script>
Expand Down Expand Up @@ -40,7 +40,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="index.html" title="FAVE Extract module"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="../../index.html">Forced Alignment and Vowel Extraction (FAVE) 2.0.1 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../index.html">Forced Alignment and Vowel Extraction (FAVE) 2.0.2-dev documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../index.html" >Module documentation</a> &#187;</li>
<li class="nav-item nav-item-2"><a href="index.html" accesskey="U">FAVE Extract module</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">FAVE esps module</a></li>
Expand Down Expand Up @@ -82,7 +82,7 @@ <h4>Next topic</h4>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../../_sources/code/extract/esps.rst.txt"
<li><a href="../../_sources/code/extract/esps.md.txt"
rel="nofollow">Show Source</a></li>
</ul>
</div>
Expand Down Expand Up @@ -115,7 +115,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="index.html" title="FAVE Extract module"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="../../index.html">Forced Alignment and Vowel Extraction (FAVE) 2.0.1 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../index.html">Forced Alignment and Vowel Extraction (FAVE) 2.0.2-dev documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../index.html" >Module documentation</a> &#187;</li>
<li class="nav-item nav-item-2"><a href="index.html" >FAVE Extract module</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">FAVE esps module</a></li>
Expand Down
8 changes: 4 additions & 4 deletions docs/_build/html/code/extract/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

<title>FAVE Extract module &#8212; Forced Alignment and Vowel Extraction (FAVE) 2.0.1 documentation</title>
<title>FAVE Extract module &#8212; Forced Alignment and Vowel Extraction (FAVE) 2.0.2-dev documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../../_static/pyramid.css" />
<script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script>
Expand Down Expand Up @@ -40,7 +40,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="../align/transcriptprocessor.html" title="FAVE TranscriptProcessor module"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="../../index.html">Forced Alignment and Vowel Extraction (FAVE) 2.0.1 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../index.html">Forced Alignment and Vowel Extraction (FAVE) 2.0.2-dev documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../index.html" accesskey="U">Module documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">FAVE Extract module</a></li>
</ul>
Expand Down Expand Up @@ -86,7 +86,7 @@ <h4>Next topic</h4>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../../_sources/code/extract/index.rst.txt"
<li><a href="../../_sources/code/extract/index.md.txt"
rel="nofollow">Show Source</a></li>
</ul>
</div>
Expand Down Expand Up @@ -119,7 +119,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="../align/transcriptprocessor.html" title="FAVE TranscriptProcessor module"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="../../index.html">Forced Alignment and Vowel Extraction (FAVE) 2.0.1 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../index.html">Forced Alignment and Vowel Extraction (FAVE) 2.0.2-dev documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../index.html" >Module documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">FAVE Extract module</a></li>
</ul>
Expand Down
8 changes: 4 additions & 4 deletions docs/_build/html/code/extract/mahalanobis.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

<title>FAVE Mahalanobis module &#8212; Forced Alignment and Vowel Extraction (FAVE) 2.0.1 documentation</title>
<title>FAVE Mahalanobis module &#8212; Forced Alignment and Vowel Extraction (FAVE) 2.0.2-dev documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../../_static/pyramid.css" />
<script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script>
Expand Down Expand Up @@ -40,7 +40,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="esps.html" title="FAVE esps module"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="../../index.html">Forced Alignment and Vowel Extraction (FAVE) 2.0.1 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../index.html">Forced Alignment and Vowel Extraction (FAVE) 2.0.2-dev documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../index.html" >Module documentation</a> &#187;</li>
<li class="nav-item nav-item-2"><a href="index.html" accesskey="U">FAVE Extract module</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">FAVE Mahalanobis module</a></li>
Expand Down Expand Up @@ -105,7 +105,7 @@ <h4>Next topic</h4>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../../_sources/code/extract/mahalanobis.rst.txt"
<li><a href="../../_sources/code/extract/mahalanobis.md.txt"
rel="nofollow">Show Source</a></li>
</ul>
</div>
Expand Down Expand Up @@ -138,7 +138,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="esps.html" title="FAVE esps module"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="../../index.html">Forced Alignment and Vowel Extraction (FAVE) 2.0.1 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../index.html">Forced Alignment and Vowel Extraction (FAVE) 2.0.2-dev documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../index.html" >Module documentation</a> &#187;</li>
<li class="nav-item nav-item-2"><a href="index.html" >FAVE Extract module</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">FAVE Mahalanobis module</a></li>
Expand Down
Loading

0 comments on commit 036094d

Please sign in to comment.