This repository has been archived by the owner on Oct 24, 2023. It is now read-only.
Unit tests - matrix image processing #250
Workflow file for this run
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: PyTest | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
# Run pytest on ubuntu, mac and windows | |
jobs: | |
pytest: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
cache: "pip" | |
- name: Cache python environment | |
id: cache-python-env | |
uses: actions/cache@v3 | |
with: | |
path: ${{ env.pythonLocation }} | |
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} | |
- name: Install dependencies within the environment | |
if: steps.cache-python-env.outputs.cache-hit != 'true' | |
run: pip install --upgrade --upgrade-strategy eager -r requirements.txt | |
- name: pytest | |
run: | | |
python -m pytest -n auto -vv -m "not slow" . |