-
Notifications
You must be signed in to change notification settings - Fork 22
48 lines (41 loc) · 1.2 KB
/
preprocessing_tests.yaml
File metadata and controls
48 lines (41 loc) · 1.2 KB
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
name: Preprocessing tests
on:
push:
branches:
- main
paths:
- 'sampler/preprocess.py'
- 'sampler/tests/preprocess_test.py'
- 'sampler/__main__.py'
pull_request:
branches:
- main
paths:
- 'sampler/preprocess.py'
- 'sampler/tests/preprocess_test.py'
- 'sampler/__main__.py'
workflow_dispatch:
jobs:
preprocessing:
name: Sampler preprocessing tests
runs-on: ubuntu-24.04
strategy:
fail-fast: false
steps:
- name: Check out code
uses: actions/checkout@v4
with:
lfs: 'true'
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- uses: actions/cache@v4
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ hashFiles('requirements.txt') }}
- name: Install requirements
run: pip install -r ./requirements.txt
- name: Preprocessing trace
run: |
tar -xzvf sampler/tests/inputs/original.tar.gz -C sampler/tests/inputs/
python3 -m sampler preprocess --trace sampler/tests/inputs/original --output sampler/tests/preprocessed -s 00:02:00 -dur 3