forked from s3prl/s3prl
-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (54 loc) · 1.96 KB
/
ci.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: CI
on:
# Trigger the workflow on push to main or any pull request
push:
branches:
- main
pull_request:
jobs:
build-and-test:
strategy:
matrix:
os: [ubuntu-18.04]
python-version: [3.8]
torchaudio-version: [0.8.1, 0.9.1, 0.10.2, 0.11.0, 0.12.1]
include:
- os: ubuntu-20.04
python-version: 3.7
torchaudio-version: 0.11.0
- os: ubuntu-20.04
python-version: 3.9
torchaudio-version: 0.8.1
- os: ubuntu-20.04
python-version: "3.10" # if not quoted, will be interpreted as 3.1
torchaudio-version: 0.11.0
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Linux dependencies
run: sudo apt-get install -y libsndfile1-dev sox git git-lfs
- name: Upgrade pip and wheel
run: pip3 install --upgrade pip wheel
- name: Install dependencies for tests
run: pip3 install -r requirements/dev.txt
- name: Check coding style by ci/format.py
run: |
./ci/format.py --check
# This can be very helpful for debugging
# The action can create a SSH server for you to connect. After you
# log into the machine hosted by GitHub, it becomes easy to debug
# why the CI fails on a specific machine.
# - name: Setup upterm session
# uses: lhotari/action-upterm@v1
- name: Run tox for common upstream
run: |
tox -e common_upstream-audio${{ matrix.torchaudio-version }} -- -n 2
# Not all upstreams will be tested on CI since this will take too much time
# To test all upstreams, run tox locally with '-e all_upstream'
- name: Run tox for all other functionalities
run: |
tox -e all_others-deps_all-audio${{ matrix.torchaudio-version }} -- -n 2