-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (44 loc) · 1.42 KB
/
TEST_FileIO.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Workflow to test the SemanticVersion class from the `utils` module
name: Testbed - FileIO Module
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_FileIO.yml'
- '.github/actions/test_config/**'
- 'tests/cases/schemas/config/*.py'
- 'tests/config/**'
- 'requirements.txt'
concurrency:
group: ${{ github.repository }}-${{ github.ref }}-${{ github.workflow }}-FileIO
cancel-in-progress: true
jobs:
run_testbeds:
name: Run FileIO Testbed
runs-on: ubuntu-22.04
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_schemas: "True"
# 2. Build & configure remote environments
# 3. Perform work
- name: Execute FileIO Testbed
uses: opengamedata/[email protected]
with:
directory: "tests/cases/utils"
test_file: "t_fileio.py"
python_version: ${{ vars.OGD_PYTHON_VERSION }}
# 4. Cleanup & complete