Skip to content

Commit

Permalink
Add workflow for running models ops test generated by model analysis (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
chandrasekaranpradeep authored Feb 25, 2025
1 parent e0771b3 commit e251bc4
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/on-nightly-models-ops.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: On Nightly Models Ops

on:
workflow_dispatch:
# Temporarily disabled the scheduled run configuration because there are currently no tests
# marked with 'nightly_models_ops' in main branch. When model ops tests are added, uncomment the schedule below to
# automatically run them at 02:00 AM UTC every day.
# schedule:
# - cron: '0 2 * * *' # Runs at 02:00 AM UTC every day

jobs:
docker-build:
uses: ./.github/workflows/build-image.yml
secrets: inherit
build:
needs: docker-build
uses: ./.github/workflows/build.yml
secrets: inherit
with:
docker-image: ${{ needs.docker-build.outputs.docker-image }}
test:
needs:
- docker-build
- build
uses: ./.github/workflows/test.yml
secrets: inherit
with:
test_mark: 'nightly_models_ops'
test_group_cnt: 4
test_group_ids: '[1,2,3,4]'
docker-image: ${{ needs.docker-build.outputs.docker-image }}
runs-on: '[{"runs-on": "n150"}]'
1 change: 1 addition & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ markers =
push: marks tests as push
nightly: marks tests as nightly
nightly_sweeps: marks tests as nightly_sweeps
nightly_models_ops: marks tests as nightly_models_ops
slow: marks tests as slow # deprecated - slow tests, should not be run in push pipeline
run_in_pp: marks tests as run_in_pp # deprecated - tests that should run in push pipeline
skip_model_analysis: marks tests as skip_model_analysis
Expand Down

0 comments on commit e251bc4

Please sign in to comment.