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

Add exception catch #18

Merged
merged 4 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
62 changes: 62 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Audio Analysis Release
run-name: Audio Analysis
on: [push]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
architecture: 'x64'

- name: Display Python version
run: python -c "import sys; print(sys.version)"

- run: sudo apt-get update
- run: python -m pip install --upgrade pip

- run: pip install black --upgrade
- run: find -name '*.py' | xargs black --target-version=py39 --check --diff

docker:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
environment:
name: docker
needs:
- tests
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: cacophonyproject/audio-analysis

-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
-
name: Build and push
uses: docker/build-push-action@v6
with:
file: ./Dockerfile
push: true
# tags: cacophonyproject/classifier:latest
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

5 changes: 4 additions & 1 deletion Melt/chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,4 +225,7 @@ def main():


if __name__ == "__main__":
sys.exit(main())
try:
sys.exit(main())
except:
sys.exit(1)