Skip to content

Testbed - APIUtils - Merge pull request #32 from opengamedata/issue/31-update-to-use-ogd-common-1-2 Update to use ogd common 1.2.1 #27

Testbed - APIUtils - Merge pull request #32 from opengamedata/issue/31-update-to-use-ogd-common-1-2 Update to use ogd common 1.2.1

Testbed - APIUtils - Merge pull request #32 from opengamedata/issue/31-update-to-use-ogd-common-1-2 Update to use ogd common 1.2.1 #27

Workflow file for this run

# Workflow to test the `APIUtils` module.
name: Testbed - APIUtils
run-name: ${{ format('{0} - {1}', github.workflow, github.event_name == 'push' && github.event.head_commit.message || 'Manual Run') }}
on:
workflow_dispatch:
workflow_call:
push:
paths:
- '.github/workflows/TEST_APIUtils.yml'
- '.github/actions/test_config/**'
- 'tests/cases/utils/t_APIUtils.py'
- 'tests/config/**'
- 'requirements.txt'
jobs:
run_testbed_api_utils:
name: Run APIUtils Testbed
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.repository }}-${{ github.ref }}-${{ github.workflow }}-APIUtils
cancel-in-progress: true
steps:
# 1. Local checkout
- name: Checkout repository
uses: actions/checkout@v4
- name: Get Dependencies
uses: opengamedata/setup-ogd-py-dependencies@v1.0
with:
python_version: ${{ vars.OGD_PYTHON_VERSION }}
- name: Set up Config File
uses: ./.github/actions/test_config
with:
verbose_output: "True"
with_api_utils: "True"
# 2. Build & configure remote environments
# 3. Perform export
- name: Execute testbed
run: python -m unittest discover -s tests/cases/utils -p "t_APIUtils.py" -t ./
# 4. Cleanup & complete
- name: Upload logs as artifacts
uses: actions/upload-artifact@v4
with:
name: "test-log"
path: ./*.log