-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a2b0120
commit 31bda03
Showing
217 changed files
with
24,246 additions
and
13,826 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
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@v2" | ||
- uses: "actions/setup-python@v2" | ||
with: | ||
python-version: "3.8" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install tox tox-gh-actions tox-conda twine build setuptools setuptools_scm[toml] wheel | ||
- name: sdist | ||
run: python setup.py sdist | ||
- name: Test with tox | ||
run: tox | ||
- name: "Upload coverage to Codecov" | ||
uses: "codecov/[email protected]" | ||
with: | ||
file: ./coverage.xml | ||
fail_ci_if_error: true | ||
- name: Build a binary wheel and a source tarball | ||
run: >- | ||
python -m | ||
build | ||
--sdist | ||
--wheel | ||
--outdir dist/ | ||
. | ||
- name: "List result" | ||
run: "ls -l dist" | ||
- name: "Check long_description" | ||
run: "python -m twine check dist/*" | ||
- name: Publish distribution 📦 to PyPI | ||
if: startsWith(github.ref, 'refs/tags') | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
- name: Publish distribution 📦 to Test PyPI | ||
continue-on-error: true | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
password: ${{ secrets.TEST_PYPI_API_TOKEN }} | ||
repository_url: https://test.pypi.org/legacy/ |
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
default_language_version: | ||
python: python3.8 | ||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: 21.8b0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/asottile/blacken-docs | ||
rev: v1.11.0 | ||
hooks: | ||
- id: blacken-docs | ||
additional_dependencies: | ||
- black==20.8b1 | ||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: 4.0.1 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: | ||
- flake8-bugbear == 20.1.4 | ||
- repo: https://github.com/pre-commit/mirrors-isort | ||
rev: v5.9.3 | ||
hooks: | ||
- id: isort | ||
additional_dependencies: [toml] | ||
- repo: https://github.com/asottile/setup-cfg-fmt | ||
rev: v1.19.0 | ||
hooks: | ||
- id: setup-cfg-fmt | ||
args: | ||
- --min-py3-version | ||
- "3.5" | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.0.1 | ||
hooks: | ||
- id: check-ast | ||
- id: check-builtin-literals | ||
- id: check-docstring-first | ||
- id: check-merge-conflict | ||
- id: check-yaml | ||
- id: check-toml | ||
- id: debug-statements | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: check-added-large-files | ||
- id: mixed-line-ending |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: 2 | ||
|
||
build: | ||
os: "ubuntu-20.04" | ||
tools: | ||
python: "mambaforge-4.10" | ||
|
||
sphinx: | ||
configuration: docs/source/conf.py | ||
|
||
conda: | ||
environment: rtd_environment.yml |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
include LICENSE *.md pyproject.toml *.yml *.yaml *.ini *.txt | ||
graft .github | ||
|
||
# Source | ||
recursive-include montreal_forced_aligner *.py | ||
recursive-include montreal_forced_aligner *.yaml | ||
|
||
# Tests | ||
include tox.ini tests/conftest.py | ||
recursive-include tests *.py | ||
recursive-include tests *.txt *.lab *.TextGrid | ||
recursive-include tests *.flac *.wav *.mp3 | ||
recursive-include tests *.yaml | ||
recursive-include tests *.zip *.arpa | ||
recursive-include tests topo *.fst *.int | ||
prune tests/data/generated | ||
|
||
# Docs | ||
recursive-include docs *.svg | ||
recursive-include docs *.py | ||
recursive-include docs *.pdf | ||
recursive-include docs *.png | ||
recursive-include docs *.rst | ||
recursive-include docs *.css | ||
recursive-include docs *.html | ||
include docs/Makefile | ||
include docs/make.bat | ||
prune docs/build | ||
prune docs/source/api | ||
|
||
prune dist | ||
prune build |
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
This file was deleted.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.