Run ock tests for PR style testing #446
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
# Calling workflow for running PR style tests | |
name: Run ock tests for PR style testing | |
on: | |
pull_request: | |
paths: | |
- 'source/**' | |
- 'clik/**' | |
- 'modules/**' | |
- 'examples/**' | |
- 'cmake/**' | |
- 'hal/**' | |
- '.github/actions/do_build_ock/**' | |
- '.github/actions/setup_build/**' | |
- '.github/workflows/run_pr_tests.yml' | |
- '.github/workflows/run_pr_tests_caller.yml' | |
- 'CMakeLists.txt' | |
schedule: | |
# Run Mon-Fri at 7pm | |
- cron: '00 19 * * 1-5' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
run-prs: | |
name: Call PR testing on schedule | |
if: ${{ (github.event_name == 'schedule' && github.repository == 'uxlfoundation/oneapi-construction-kit') || github.event_name == 'pull_request' }} | |
uses: ./.github/workflows/run_pr_tests.yml | |
with: | |
update_cache: ${{ github.event_name == 'schedule' }} | |
is_pull_request: ${{ github.event_name != 'schedule' }} | |
# additional ones here for cron and/or push to main - also can be in different file. |