fixes to make tests pass #300
This file contains hidden or 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
| # | |
| # Run unit tests. | |
| # | |
| name: Test | |
| on: | |
| - push | |
| - workflow_dispatch | |
| jobs: | |
| pytest: | |
| name: Run Tests | |
| runs-on: ubuntu-22.04 | |
| timeout-minutes: 30 | |
| strategy: | |
| matrix: | |
| python-version: | |
| - "3.7" | |
| - "3.8" | |
| - "3.9" | |
| - "3.10" | |
| - "3.11" | |
| - "3.12" | |
| - "3.13" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Cache dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-test-${{ hashFiles('setup.py') }} | |
| restore-keys: | | |
| ${{ runner.os }}-test- | |
| - name: Install | |
| run: | | |
| pip install virtualenv | |
| make venv install-test | |
| - name: Run in debug and color mode | |
| run: | | |
| source .venv/bin/activate | |
| make test-cli | |
| - name: Compare image processing output | |
| run: | | |
| source .venv/bin/activate | |
| make test-diff | |
| - name: Run pytest | |
| run: | | |
| source .venv/bin/activate | |
| make test-pytest |