Skip to content

Fix .readthedocs.yaml name #15

Fix .readthedocs.yaml name

Fix .readthedocs.yaml name #15

Workflow file for this run

name: CI
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.11', '3.12', '3.13', '3.14']
exclude:
# Exclude Windows builds for Python 3.13 and 3.14 due to OpenTimelineIO compatibility issues
- os: windows-latest
python-version: '3.13'
- os: windows-latest
python-version: '3.14'
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Cache virtual environment
uses: actions/cache@v4
with:
path: .venv
key: ${{ runner.os }}-venv-${{ matrix.python-version }}-${{ hashFiles('**/pyproject.toml', '**/dev-requirements.txt') }}
restore-keys: |
${{ runner.os }}-venv-${{ matrix.python-version }}-
- name: Create virtual environment
run: |
python -m venv .venv
- name: Install dependencies (Unix)
if: runner.os != 'Windows'
run: |
.venv/bin/python -m pip install --upgrade pip
.venv/bin/python -m pip install -e .[dev,test]
- name: Install dependencies (Windows)
if: runner.os == 'Windows'
run: |
.venv\Scripts\python -m pip install --upgrade pip
.venv\Scripts\python -m pip install -e .[dev,test]
- name: Run tests (Unix)
if: (matrix.os != 'ubuntu-latest' || matrix.python-version != '3.14') && runner.os != 'Windows'
run: |
.venv/bin/python -m pytest tests/ -v --tb=short --strict-markers --strict-config --junitxml=junit-test-results.xml -o junit_family=legacy
- name: Run tests (Windows)
if: (matrix.os != 'ubuntu-latest' || matrix.python-version != '3.14') && runner.os == 'Windows'
run: |
.venv\Scripts\python -m pytest tests/ -v --tb=short --strict-markers --strict-config --junitxml=junit-test-results.xml -o junit_family=legacy
- name: Run tests with coverage (Unix)
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.14'
run: |
.venv/bin/python -m pytest tests/ --cov=cdl_convert --cov-report=xml --cov-report=term-missing --junitxml=junit-test-results.xml -o junit_family=legacy
- name: Upload coverage reports
uses: codecov/codecov-action@v5
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.14'
with:
files: ./junit-test-results.xml
flags: unittests
name: codecov-umbrella
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
- name: Upload test results to Codecov
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.14' && !cancelled()
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload test results to Github
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results-${{ matrix.os }}-${{ matrix.python-version }}
path: |
*test-results*.xml
retention-days: 30