Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Poetry Environment #159

Merged
merged 32 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
4452072
feat: Adds poetry
ntlhui Nov 14, 2023
f03c455
feat: Adds workflow
ntlhui Nov 14, 2023
7d74a39
fix: Adds python version limitation
Nov 14, 2023
ec86f00
fix: Limits tensorflow-io-gcs-filesystem version
Nov 14, 2023
47f535a
fix: Fixes tensorflow for Windows
Nov 14, 2023
512b4da
Update IsoAutio.py
Sean1572 Nov 14, 2023
708d8a5
Update IsoAutio.py
Sean1572 Nov 14, 2023
f83569b
fix: Fixes env, adds testing
Nov 14, 2023
66afad1
ci: Fixes workflow
Nov 14, 2023
1220470
ci: Fixes poetry testing
Nov 14, 2023
7e4d223
ci: Fixes pytest invocation
Nov 14, 2023
c528e8c
fix: Downgrades torch
Nov 14, 2023
4cf5824
ci: Fixes env
Nov 14, 2023
c4b8bca
feat: Adds support for 3.10 and docs
Nov 14, 2023
e30b39a
fix: Fixes packaging name
Nov 14, 2023
9d2a1c0
fix: Downgrades pytest
Nov 14, 2023
40b8831
fix: Upgrades pytest to latest
Nov 14, 2023
4bb128f
fix: Adds test script
Nov 14, 2023
d92165c
chore: Removes conda
Nov 14, 2023
7d0aa42
docs: Adds poetry tensorflow notes
Nov 14, 2023
3ac09a5
Import fixes (#160)
TQZhang04 Nov 17, 2023
ac020a1
Add resampy test and assert nonempty dataframes
sprestrelski Nov 17, 2023
7e3ea53
fix: Adds local test bypass for TEST directory
ntlhui Nov 17, 2023
b476cd7
fix: Hacking pathing
ntlhui Nov 17, 2023
9c258d7
fix: Adds logging
ntlhui Nov 17, 2023
266663e
fix: Fixes logging output
Nov 27, 2023
46fa363
fix: Reverting pandas changes
Nov 27, 2023
68c6c0d
fix: Fixes multi-drive path issues
Nov 27, 2023
b2e308a
ci: Disables continue-on-error
Nov 27, 2023
48066df
fix: Adds logging
Nov 27, 2023
5cbab83
ci: Corrects fixtures
Nov 27, 2023
bcbe76e
fix: Fixes unzip
Nov 27, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/env_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Environment Test

on: [push, workflow_dispatch]

jobs:
build:
# continue-on-error: true
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04, windows-latest, macos-12, macos-11]
python-version: ["3.8", "3.9", "3.10"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip poetry
poetry install
- name: Run test
env:
NAS_CREDS: ${{ secrets.NAS_CREDS }}
run: |
poetry run python -m pytest pyha_tests
284 changes: 283 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,286 @@ mixed_bird_manual.csv


!PyHa_Tutorial.ipynb
!ScreamingPiha_Manual_Labels.csv
!ScreamingPiha_Manual_Labels.csv

# Created by https://www.toptal.com/developers/gitignore/api/jupyternotebooks,python,linux,macos,windows,visualstudiocode
# Edit at https://www.toptal.com/developers/gitignore?templates=jupyternotebooks,python,linux,macos,windows,visualstudiocode

### JupyterNotebooks ###
# gitignore template for Jupyter Notebooks
# website: http://jupyter.org/

.ipynb_checkpoints
*/.ipynb_checkpoints/*

# IPython
profile_default/
ipython_config.py

# Remove previous ipynb_checkpoints
# git rm -r .ipynb_checkpoints/

### Linux ###
*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### macOS Patch ###
# iCloud generated files
*.icloud

### Python ###
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook

# IPython

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

### Python Patch ###
# Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration
poetry.toml

# ruff
.ruff_cache/

# LSP config files
pyrightconfig.json

### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets

# Local History for Visual Studio Code
.history/

# Built Visual Studio Code Extensions
*.vsix

### VisualStudioCode Patch ###
# Ignore all local history of files
.history
.ionide

### Windows ###
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk

# End of https://www.toptal.com/developers/gitignore/api/jupyternotebooks,python,linux,macos,windows,visualstudiocode
credentials.json
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"python.testing.pytestArgs": [
"pyha_tests"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true
}
Loading