Skip to content

Update poetry test execution steps which causing to fail workflow #133

Update poetry test execution steps which causing to fail workflow

Update poetry test execution steps which causing to fail workflow #133

name: Execute Common API Test
on:
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- info
- warning
- debug
tags:
description: 'manual-trigger'
required: false
type: boolean
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]
schedule:
- cron: '45 23 * * 0'
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
poetry-version: ["latest"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- name: View poetry --help
run: poetry --help
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pytest
python -m pip install --upgrade poetry
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f test_requirements.txt ]; then pip install -r test_requirements.txt; fi
poetry install --with dev
- name: Build wheel
run: |
poetry build
- name: Install wheel
run: |
python -m pip install dist/*.whl
- name: Install Package
run: |
python -m poetry install
- name: Test Execution of CommonTest with pytest
run: |
pytest -q tests/CommonTests.py