From 30d113ceaa5b5973c55b8a957edfe5793e5c04e3 Mon Sep 17 00:00:00 2001 From: Vladimir Milosevic Date: Tue, 28 Jan 2025 11:01:25 +0000 Subject: [PATCH] Adding nightly test run Adding nightly test run. For start it will run all tests same as PR workflow. Later we can add test marks and label tests as push or nightly to select which test group executes in a workflow. See https://github.com/tenstorrent/tt-forge-fe/blob/main/pytest.ini and https://github.com/tenstorrent/tt-forge-fe/blob/main/.github/workflows/build-and-test.yml --- .github/workflows/build-and-test.yml | 13 +++++++++++++ .github/workflows/on-nightly.yml | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/on-nightly.yml diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index bdf44a0a..482466b2 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -7,12 +7,25 @@ on: description: 'Git SHA of commit in tenstorrent/tt-mlir' required: false type: string + test_mark: + description: 'Test mark to run' + required: true + default: 'push' + type: choice + options: + - push + - nightly workflow_call: inputs: mlir_override: description: 'Git SHA of commit in tenstorrent/tt-mlir' required: false type: string + test_mark: + description: 'Test mark to run' + required: false + default: 'push' + type: string permissions: packages: write diff --git a/.github/workflows/on-nightly.yml b/.github/workflows/on-nightly.yml new file mode 100644 index 00000000..f1b90093 --- /dev/null +++ b/.github/workflows/on-nightly.yml @@ -0,0 +1,13 @@ +name: On nightly + +on: + workflow_dispatch: + schedule: + - cron: '0 0 * * *' + +jobs: + build-and-test: + uses: ./.github/workflows/build-and-test.yml + secrets: inherit + with: + test_mark: 'nightly'