Skip to content

Commit

Permalink
Merge pull request #3138 from craig8/update-test-times
Browse files Browse the repository at this point in the history
Culmination of 9.x items.
  • Loading branch information
craig8 committed Nov 10, 2023
2 parents b9e68f2 + 39c3e30 commit ce5ff49
Show file tree
Hide file tree
Showing 30 changed files with 295 additions and 406 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/code_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ on:
schedule:
- cron: '25 18 * * 2'

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
analyze:
name: Analyze
Expand Down
16 changes: 15 additions & 1 deletion .github/workflows/pytest-auth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,21 @@
name: Testing platform auth

# Determine what events are going to trigger a running of the workflow
on: [pull_request]
on:
workflow_dispatch:
push:
branches:
- develop
- releases/**
pull_request:
branches:
- main
- develop
- releases/**

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
# The job named build
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/pytest-dbutils-backup_db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,20 @@ name: Testing BackupDatabase

# Determine what events are going to trigger a running of the workflow
on:
workflow_dispatch:
push:
branches:
- develop
- releases/**
pull_request:
branches:
- main
- develop
- releases/**
- main
- develop
- releases/**

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/pytest-dbutils-influxdbfuncts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,19 @@

name: Testing influxdbutils
on:
workflow_dispatch:
push:
branches:
- develop
- releases/**
pull_request:
branches:
- main
- develop
- releases/**
- main
- develop
- releases/**
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/pytest-dbutils-mysqlfuncts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,19 @@

name: Testing mysqlfuncts
on:
workflow_dispatch:
push:
branches:
- develop
- releases/**
pull_request:
branches:
- main
- develop
- releases/**
- main
- develop
- releases/**
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/pytest-dbutils-postgresqlfuncts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,19 @@

name: Testing postgresqlfuncts
on:
workflow_dispatch:
push:
branches:
- develop
- releases/**
pull_request:
branches:
- main
- develop
- releases/**
- main
- develop
- releases/**
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/pytest-dbutils-sqlitefuncts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,19 @@

name: Testing sqlitefuncts
on:
workflow_dispatch:
push:
branches:
- develop
- releases/**
pull_request:
branches:
- main
- develop
- releases/**

- main
- develop
- releases/**
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
env:
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/pytest-dbutils-timescaldbfuncts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,19 @@

name: Testing postgresql_timescaledb_functs
on:
workflow_dispatch:
push:
branches:
- develop
- releases/**
pull_request:
branches:
- main
- develop
- releases/**

- main
- develop
- releases/**
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
env:
Expand Down
27 changes: 15 additions & 12 deletions .github/workflows/pytest-miscellaneous-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,19 @@
name: Miscellaneous platform tests

on:
workflow_dispatch:
push:
branches:
- develop
- releases/**
pull_request:
branches:
- main
- develop
- releases/**

- main
- develop
- releases/**
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
# The job named build
build:
Expand All @@ -32,10 +35,10 @@ jobs:
strategy:
fail-fast: false
matrix:
# Each entry in the os and python-version matrix will be run
# Each entry in the os and python-version matrix will be run
os: [ ubuntu-20.04 ]
python-version: [ 3.8 ]

# Run-on determines the operating system available to run on
# - At the current time there is only ubuntu machine 20.04 available
# - This uses the matrix os from the strategy above
Expand All @@ -60,33 +63,33 @@ jobs:
os: ${{ matrix.os }}
test_path: volttrontesting/platform/web/test_certs.py
test_output_suffix: misc

- name: Run core agent test on ${{ matrix.python-version }}, ${{ matrix.os }}
uses: volttron/volttron-build-action@v5
uses: volttron/volttron-build-action@v6
with:
python_version: ${{ matrix.python-version }}
os: ${{ matrix.os }}
test_path: volttrontesting/platform/test_core_agent.py
test_output_suffix: misc

- name: Run packaging test on ${{ matrix.python-version }}, ${{ matrix.os }}
uses: volttron/volttron-build-action@v5
uses: volttron/volttron-build-action@v6
with:
python_version: ${{ matrix.python-version }}
os: ${{ matrix.os }}
test_path: volttrontesting/platform/test_packaging.py
test_output_suffix: misc

- name: Run platform init test on ${{ matrix.python-version }}, ${{ matrix.os }}
uses: volttron/volttron-build-action@v5
uses: volttron/volttron-build-action@v6
with:
python_version: ${{ matrix.python-version }}
os: ${{ matrix.os }}
test_path: volttrontesting/platform/test_platform_init.py
test_output_suffix: misc

- name: Run sqlite3 test on ${{ matrix.python-version }}, ${{ matrix.os }}
uses: volttron/volttron-build-action@v5
uses: volttron/volttron-build-action@v6
with:
python_version: ${{ matrix.python-version }}
os: ${{ matrix.os }}
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/pytest-testutils.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,19 @@

name: Testing testutils directory
on:
workflow_dispatch:
push:
branches:
- develop
- releases/**
pull_request:
branches:
- main
- develop
- releases/**

- main
- develop
- releases/**
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
# The strategy allows customization of the build and allows matrixing the version of os and software
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/pytest-vctl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,19 @@ name: Testing volttron-ctl

# Determine what events are going to trigger a running of the workflow
on:
workflow_dispatch:
push:
branches:
- develop
- releases/**
pull_request:
branches:
- main
- develop
- releases/**

- main
- develop
- releases/**
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
# The job named build
build:
Expand Down Expand Up @@ -71,4 +74,3 @@ jobs:
name: pytest-report
# should match test-<test_output_suffix>- ...
path: output/test-control_tests-${{matrix.os}}-${{ matrix.python-version }}-results.xml

19 changes: 11 additions & 8 deletions .github/workflows/pytest-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,19 @@
name: Testing platform web

on:
workflow_dispatch:
push:
branches:
- develop
- releases/**
pull_request:
branches:
- main
- develop
- releases/**

- main
- develop
- releases/**
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
# The job named build
build:
Expand Down Expand Up @@ -54,7 +57,7 @@ jobs:

# Run the specified tests and save the results to a unique file that can be archived for later analysis.
- name: Run pytest on ${{ matrix.python-version }}, ${{ matrix.os }}
uses: volttron/volttron-build-action@v6
uses: volttron/volttron-build-action@v7
with:
python_version: ${{ matrix.python-version }}
os: ${{ matrix.os }}
Expand All @@ -68,15 +71,15 @@ jobs:
with:
name: pytest-report
path: output/test-web-${{matrix.os}}-${{ matrix.python-version }}-results.xml

# - name: Publish Unit Test Results
# uses: EnricoMi/publish-unit-test-result-action@v1.5
# if: always()
# with:
# github_token: ${{ secrets.WORKFLOW_ACCESS_TOKEN }}
# files: output/test-testutils*.xml


#-cov=com --cov-report=xml --cov-report=html
# pytest tests.py --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
# - name: Lint with flake8
Expand Down

0 comments on commit ce5ff49

Please sign in to comment.