Skip to content

Commit e3ccb13

Browse files
committed
Add workflow for reference resouce generation
1 parent 59af4b7 commit e3ccb13

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Test reference resource generation
2+
3+
on:
4+
pull_request_target:
5+
paths:
6+
- test/generate_reference_resources.sh
7+
schedule:
8+
- cron: '0 0 * * 0' # on sunday
9+
10+
defaults:
11+
run:
12+
shell: bash -l -eo pipefail {0}
13+
14+
jobs:
15+
test-reference-resource-generation:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
python-version: ['3.9']
21+
ffmpeg-version-for-tests: ['4.4.2', '5.1.2', '6.1.1', '7.0.1']
22+
needs: build
23+
steps:
24+
- name: Setup conda env
25+
uses: conda-incubator/setup-miniconda@v2
26+
with:
27+
auto-update-conda: true
28+
miniconda-version: "latest"
29+
activate-environment: test
30+
python-version: ${{ matrix.python-version }}
31+
- name: Check out repo
32+
uses: actions/checkout@v3
33+
- name: Install ffmpeg
34+
run: |
35+
conda install "ffmpeg=${{ matrix.ffmpeg-version-for-tests }}" -c conda-forge
36+
ffmpeg -version
37+
- name: Run generation reference resources
38+
run: |
39+
test/generate_reference_resources.sh

test/generate_reference_resources.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
# Run this script to update the resources used in unit tests. The resources are all derived
1010
# from source media already checked into the repo.
1111

12+
# change to trigger CI
13+
1214
# Fail loudly on errors.
1315
set -x
1416
set -e

0 commit comments

Comments
 (0)