Bump the all-github group with 2 updates #120
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.8", "3.9", "3.10", "3.11", "3.12"] | |
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@v3 | |
with: | |
poetry-version: 1.4.0 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install pytest | |
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 | |