Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

Bump GitHub Actions to latest versions #268

Bump GitHub Actions to latest versions

Bump GitHub Actions to latest versions #268

Workflow file for this run

name: Tests
on:
push:
branches:
- "*"
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python: [3.8, 3.9, "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install Poetry
run: pip install poetry
- name: Use in-project virtualenv
run: poetry config virtualenvs.in-project true
- uses: actions/cache@v3
with:
path: .venv/
key: ${{ runner.os }}-${{ matrix.python }}-pip-${{ hashFiles('poetry.lock') }}-${{ hashFiles('pyproject.toml') }}
- name: Install dependencies
run: poetry install
- name: Install OpenCV from PyPI
run: poetry run pip install opencv-contrib-python-headless
- name: Lint
run: make lint
- name: Static type checking
run: make type
- name: Unit tests
run: make test-cov