-
Notifications
You must be signed in to change notification settings - Fork 5
42 lines (31 loc) · 1.05 KB
/
liquidsoap-script.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
name: Liquidsoap script
on:
- push
- pull_request
env:
KLANGBECKEN_DATA: /tmp/data
jobs:
check:
strategy:
matrix:
liquidsoap: [1.3.2, 1.3.7]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Docker pull
run: docker pull radiorabe/liquidsoap:alpine-${{matrix.liquidsoap}}
- name: Check liquidsoap version
run: docker run --rm radiorabe/liquidsoap:alpine-${{matrix.liquidsoap}} --version
- name: Prepare data directory
run: python -m klangbecken init -d $KLANGBECKEN_DATA
- name: Docker run check
run: |
docker run --rm -e KLANGBECKEN_DATA=$KLANGBECKEN_DATA -v $KLANGBECKEN_DATA:$KLANGBECKEN_DATA -v `pwd`:/var/lib/liquidsoap radiorabe/liquidsoap:alpine-${{matrix.liquidsoap}} --check /var/lib/liquidsoap/klangbecken.liq