Skip to content

[rqd] Python tests for rqd only v2 #2681

[rqd] Python tests for rqd only v2

[rqd] Python tests for rqd only v2 #2681

name: OpenCue Testing Pipeline
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test_python_2023:
name: Run Python Unit Tests (CY2023)
runs-on: ubuntu-22.04
container: aswf/ci-opencue:2023
steps:
- uses: actions/checkout@v3
- name: Run Python Tests
run: ci/run_python_tests.sh
test_cuebot_2023:
name: Build Cuebot and Run Unit Tests (CY2023)
runs-on: ubuntu-22.04
container:
image: aswf/ci-opencue:2023
steps:
- uses: actions/checkout@v3
- name: Build with Gradle
run: |
chown -R aswfuser:aswfgroup .
su -c "cd cuebot && ./gradlew build --stacktrace --info" aswfuser
test_python_2024:
name: Run Python Unit Tests (CY2024)
runs-on: ubuntu-22.04
container: aswf/ci-opencue:2024
steps:
- uses: actions/checkout@v3
- name: Run Python Tests
run: ci/run_python_tests.sh
test_cuebot_2024:
name: Build Cuebot and Run Unit Tests (CY2024)
runs-on: ubuntu-22.04
container:
image: aswf/ci-opencue:2024
steps:
- uses: actions/checkout@v3
- name: Build with Gradle
run: |
chown -R aswfuser:aswfgroup .
su -c "cd cuebot && ./gradlew build --stacktrace --info" aswfuser
lint_python:
name: Lint Python Code
runs-on: ubuntu-22.04
container: aswf/ci-opencue:2024.1
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
steps:
- uses: actions/checkout@v3
- name: Lint Python Code
run: ci/run_python_lint.sh
test_sphinx:
name: Test Documentation Build
runs-on: ubuntu-22.04
container:
image: aswf/ci-opencue:2023
steps:
- uses: actions/checkout@v3
- name: Run Sphinx build
run: ci/build_sphinx_docs.sh
check_changed_files:
name: Check Changed Files
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Get Changed Files
id: get_changed_files
uses: tj-actions/changed-files@v41
- name: Check for Version Change
run: ci/check_changed_files.py ${{ steps.get_changed_files.outputs.modified_files }} ${{ steps.get_changed_files.outputs.deleted_files }}
check_migration_files:
name: Check Database Migration Files
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Check Migration Files
run: ci/check_database_migrations.py
check_for_version_bump:
name: Check for Version Bump
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Get Changed Files
id: get_changed_files
uses: tj-actions/changed-files@v41
- name: Check for Version Change
run: ci/check_version_bump.py ${{ steps.get_changed_files.outputs.all_changed_and_modified_files }}
test_rqd_python_3_8:
name: Test RQD with python 3.8
runs-on: ubuntu-latest
container:
image: python:3.8
steps:
- uses: actions/checkout@v4
- name: Run Python Tests
run: ci/run_rqd_python_tests.sh
test_rqd_python_3_9:
name: Test RQD with python 3.9
runs-on: ubuntu-latest
container:
image: python:3.9
steps:
- uses: actions/checkout@v4
- name: Run Python Tests
run: ci/run_rqd_python_tests.sh
test_rqd_python_3_10:
name: Test RQD with python 3.10
runs-on: ubuntu-latest
container:
image: python:3.10
steps:
- uses: actions/checkout@v4
- name: Run Python Tests
run: ci/run_rqd_python_tests.sh
test_rqd_python_3_11:
name: Test RQD with python 3.11
runs-on: ubuntu-latest
container:
image: python:3.11
steps:
- uses: actions/checkout@v4
- name: Run Python Tests
run: ci/run_rqd_python_tests.sh
test_rqd_python_3_12:
name: Test RQD with python 3.12
runs-on: ubuntu-latest
container:
image: python:3.12
steps:
- uses: actions/checkout@v4
- name: Run Python Tests
run: ci/run_rqd_python_tests.sh
test_rqd_python_3_13:
name: Test RQD with python 3.13
runs-on: ubuntu-latest
container:
image: python:3.13
steps:
- uses: actions/checkout@v4
- name: Run Python Tests
run: ci/run_rqd_python_tests.sh