Skip to content

Poetry init

Poetry init #34

Workflow file for this run

name: Pytest
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
env:
DIGIKEY_INVENTREE_TEST_MODE: "True"
DIGIKEY_INVENTREE_TEST_CONFIG_PATH: "tests/test_data/test_config.ini"
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install Poetry
uses: snok/intall-poetry@v1
with:
virtualenvs-create: True
virtualenvs-in-project: True
installer-parallel: true
- name: Install dependencies
run: |
poetry install --no-interaction
- name: Pytest
run: |
poetry run pytest --cov=inventree_digikey --cov-report=xml --cov-report=html --junitxml=junit/test-results.xml