Skip to content

Replace {e:s} with {e} #12

Replace {e:s} with {e}

Replace {e:s} with {e} #12

Workflow file for this run

# This workflow will install Python dependencies and run tests with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Tests
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
Build:
name: ${{ matrix.name }} w/ Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10"]
include:
- os: ubuntu-latest
name: Linux
- os: windows-latest
name: Windows
- os: macOS-latest
name: macOS
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test
run: |
python main.py examples/cube/cube.obj examples/cube/texture-bad-background.png --output examples/cube/travis-results.png
python tests/compare_images.py examples/cube/texture-bad-background-erased.png examples/cube/travis-results.png
python seam_erasure/weight_data.py ./examples/weight-data/hercules.data ./examples/weight-data/hercules-copy.data