-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from opengamedata/issue/3-refactor-interface-c…
…lasses Refactor interface classes: phase 1
- Loading branch information
Showing
80 changed files
with
2,437 additions
and
1,216 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,11 +6,13 @@ on: | |
workflow_call: | ||
push: | ||
paths: | ||
- '.github/workflows/TEST_ConfigSchemas.yml' | ||
# repo-wide dependencies | ||
- '.github/actions/test_config/**' | ||
- 'tests/cases/schemas/config/*.py' | ||
- 'tests/config/**' | ||
- 'requirements.txt' | ||
# specific dependencies | ||
- '.github/workflows/TEST_Configs.yml' | ||
- 'tests/cases/configs/*.py' | ||
|
||
concurrency: | ||
group: ${{ github.repository }}-${{ github.ref }}-${{ github.workflow }}-ConfigSchemas | ||
|
@@ -25,8 +27,8 @@ jobs: | |
matrix: | ||
testbed: [ | ||
t_GameSourceSchema, | ||
t_IndexingSchema, | ||
t_TestConfigSchema, | ||
t_IndexingConfig, | ||
t_TestConfig, | ||
] | ||
fail-fast: false # we don't want to cancel just because one testbed fails. | ||
max-parallel: 20 | ||
|
@@ -53,7 +55,7 @@ jobs: | |
- name: Execute ${{ matrix.testbed }} testbed | ||
uses: opengamedata/[email protected] | ||
with: | ||
directory: "tests/cases/schemas/config" | ||
directory: "tests/cases/configs" | ||
test_file: "${{ matrix.testbed }}.py" | ||
python_version: ${{ vars.OGD_PYTHON_VERSION }} | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Workflow to test the schemas from the `config` subfolder | ||
name: Testbed - Game Configs | ||
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: | ||
# repo-wide dependencies | ||
- '.github/actions/test_config/**' | ||
- 'tests/config/**' | ||
- 'requirements.txt' | ||
# specific dependencies | ||
- '.github/workflows/TEST_GameConfigs.yml' | ||
- 'tests/cases/configs/games/**' | ||
|
||
concurrency: | ||
group: ${{ github.repository }}-${{ github.ref }}-${{ github.workflow }}-GameConfigs | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
|
||
run_testbed_schema: | ||
name: Run Game Config Testbeds | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
testbed: [ | ||
t_AggregateConfig, | ||
t_DetectorMapConfig, | ||
t_DetectorConfig, | ||
t_FeatureMapConfig, | ||
t_FeatureConfig, | ||
t_GeneratorConfig, | ||
t_PerCountConfig | ||
] | ||
fail-fast: false # we don't want to cancel just because one testbed fails. | ||
max-parallel: 20 | ||
|
||
steps: | ||
# 1. Local checkout | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Get Dependencies | ||
uses: opengamedata/[email protected] | ||
with: | ||
python_version: ${{ vars.OGD_PYTHON_VERSION }} | ||
- name: Local self-install | ||
run: python -m pip install -e . | ||
- name: Set up Config File | ||
uses: ./.github/actions/test_config | ||
with: | ||
verbose_output: "True" | ||
with_configs: "True" | ||
|
||
# 2. Build & configure remote environments | ||
|
||
# 3. Perform export | ||
- name: Execute ${{ matrix.testbed }} testbed | ||
uses: opengamedata/[email protected] | ||
with: | ||
directory: "tests/cases/configs/games" | ||
test_file: "${{ matrix.testbed }}.py" | ||
python_version: ${{ vars.OGD_PYTHON_VERSION }} | ||
|
||
# 4. Cleanup & complete |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
"""Config Class Module | ||
""" | ||
## import standard libraries | ||
from typing import TypeAlias | ||
# import local files | ||
from ogd.common.schemas.Schema import Schema | ||
|
||
Config : TypeAlias = Schema |
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
Oops, something went wrong.