-
Notifications
You must be signed in to change notification settings - Fork 6
51 lines (39 loc) · 1.29 KB
/
noise_processing.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Ambient Sound Processing
on:
# To run manually
# workflow_dispatch:
schedule:
- cron: '9 * * * *'
workflow_dispatch:
jobs:
process:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.9.18'
- name: Install Python dependencies
run: |
python -m pip install -U pip
python -m pip install -U setuptools wheel
python -m pip install awscli matplotlib scipy m3u8 git+https://github.com/kkroening/ffmpeg-python
python -m pip install orcasound_noise@git+https://github.com/orcasound/ambient-sound-analysis
python -m pip install kaleido
- name: Install ffmpeg
run: |
sudo apt-get update
sudo apt-get install ffmpeg
# - name: Get latest timestamp
# run: |
# aws --no-sign-request s3 cp s3://streaming-orcasound-net/rpi_bush_point/latest.txt .
# read -r timestamp<latest.txt
# echo "timestamp=$timestamp" >> $GITHUB_ENV
- name: Create plots
if: steps.cache.outputs.cache-hit != 'true'
run: |
python noise_processing.py
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Commit to Github
file_pattern: 'img/*.png'