Skip to content

Start unit tests with pytest #3

Start unit tests with pytest

Start unit tests with pytest #3

Workflow file for this run

name: Unit Tests
on:
pull_request:
branches:
- '**' # Matches all branch names
push:
branches:
- '**' # Match any branch
jobs:
pytest:
name: pytest
runs-on: ${{matrix.os}}
strategy:
matrix:
python-version: ['3.12']
os: [ubuntu-latest]
fail-fast: False
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: '**/requirements*.txt'
- name: Install dependencies
run: |
python -W ignore -m pip install --upgrade pip
python -W ignore -m pip install .
python -W ignore -m pip install -r requirements.txt
- name: Test with pytest
run: |
pytest -v tests/