Add tolerance to image comparison in tests #3
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
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Python and pre-commit | |
uses: ./.github/actions/setup-ci | |
- name: Pre-commit | |
run: | | |
SKIP=unittests pre-commit run --all-files --color=always | |
unittests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Python and pre-commit | |
uses: ./.github/actions/setup-ci | |
- name: Test with pytest | |
run: | | |
python -m pytest tests |