Skip to content

Poetry init

Poetry init #33

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 dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Pytest
run: |
pip install pytest pytest-cov
python -m pytest --cov=src --cov-report=xml --cov-report=html --junitxml=junit/test-results.xml