From 548a7df7d88ba421e046a687734cc6fe6b25fe42 Mon Sep 17 00:00:00 2001 From: daniel Date: Wed, 3 Feb 2021 21:06:40 +0100 Subject: [PATCH] nesting will have to wait :'( --- .github/workflows/ci.yaml | 50 ++++++++++++++++++++++++++++++++------- 1 file changed, 42 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d511418..24efacb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,22 +16,56 @@ on: - "*.txt" jobs: - test-with-otio: + test-otio-0130: env: plugin_name: "mlt_xml" - name: "Test in OpenTimelineIO" + name: "OpenTimelineIO 0.13.0" runs-on: ubuntu-latest strategy: matrix: - python-version: [2.7, 3.7, 3.8] - otio-versions: [0.12.1, 0.13.0] + python-version: [ 2.7, 3.7, 3.8 ] steps: - - name: Setup otio version - with: - otio-version: ${{ matrix.otio-version }} + - uses: actions/checkout@v2 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 pytest pytest-cov -V OpenTimelineIO==0.13.0 + + - name: Install Plugin + run: | + pip install -e . + - name: Lint with flake8 + run: | + flake8 --show-source --statistics + + - name: Test with pytest + run: | + pytest + + - name: Check registration of plugin + run: | + [[ ! -z $(otiopluginfo mlt_xml | grep ${{ env.plugin_name }}) ]] + + test-otio-0121: + env: + plugin_name: "mlt_xml" + + name: "OpenTimelineIO 0.12.1" + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [2.7, 3.7, 3.8] + + steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} @@ -42,7 +76,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install flake8 pytest pytest-cov -V OpenTimelineIO==${{ matrix.otio-version }} + pip install flake8 pytest pytest-cov -V OpenTimelineIO==0.12.1 - name: Install Plugin run: |