Skip to content

Added better exceptions to Hexital verifying dict indicators #126

Added better exceptions to Hexital verifying dict indicators

Added better exceptions to Hexital verifying dict indicators #126

Workflow file for this run

name: Unit Tests
on:
push:
branches: [ "master", "development" ]
pull_request:
branches: [ "master", "development" ]
jobs:
test:
strategy:
matrix:
os: ["ubuntu-latest"]
python-version: ["3.10", "3.11"]
runs-on: "${{ matrix.os }}"
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install and configure Poetry
uses: snok/[email protected]
with:
version: 1.5.1
virtualenvs-create: true
virtualenvs-in-project: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root
- name: Test with pytest
run: |
poetry run coverage run --omit="tests/*" -m pytest
poetry run coverage report