Skip to content

Commit 5466c27

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

File tree

2 files changed

+42
-0
lines changed

2 files changed

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