Add TR2 Cost Function #126
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will install Python dependencies, run tests with a different versions of Python and different operating systems | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
name: Python test | |
on: [push] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-13, macos-latest, windows-latest] | |
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
steps : | |
- uses : actions/checkout@v4 | |
- name : Setup FFmpeg (with retries) | |
uses : ./actions/setup-ffmpeg | |
with : | |
github-token : ${{ secrets.GITHUB_TOKEN }} | |
- name : Set up Python | |
uses : actions/setup-python@v4 | |
with : | |
python-version: ${{ matrix.python-version }} | |
- name : Run image | |
uses : abatilo/actions-poetry@v2 | |
- name : Setup a local virtual environment | |
run : | | |
poetry config virtualenvs.create true --local | |
poetry config virtualenvs.in-project true --local | |
- name : Install dependencies | |
run : | | |
poetry install --with tests | |
- name : Execute tests | |
run : | | |
poetry run coverage run tests/run_tests.py | |
poetry run coverage report -m || true |