forked from s3prl/s3prl
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (49 loc) · 1.56 KB
/
ci.yml
File metadata and controls
63 lines (49 loc) · 1.56 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-and-test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.10"]
torchaudio-version: [2.5.1, 2.7.1, 2.8.0, 2.9.1]
include:
- os: ubuntu-latest
python-version: "3.12" # if not quoted, will be interpreted as 3.1
torchaudio-version: 2.9.1
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- 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 update
sudo apt-get install -y libsndfile1-dev sox git git-lfs
- name: Upgrade pip and wheel
run: pip3 install --upgrade pip wheel setuptools
- 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
- name: Clean Docker space
run: docker system prune -af
# 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 }}