diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index fb8970e35..74e63bbde 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -1,14 +1,24 @@ name: CI -# Scheduled workflows will only run on the default branch. on: - schedule: + workflow_dispatch: +# Scheduled workflows will only run on the default branch. + schedule: - cron: '0 0 * * *' # runs once a day at midnight in the timezone of your GitHub repository jobs: - build: - runs-on: [windows-latest, macos-latest] - steps: - - name: Checkout code - uses: actions/checkout@v2 - # your steps go here + + # doctest: + # uses: ./.github/workflows/doctest.yml + # secrets: inherit + lint: + uses: ./.github/workflows/lint.yml + with: + runner: "['windows-latest', 'macos-latest']" + secrets: inherit + # test: + # uses: ./.github/workflows/test.yml + # secrets: inherit + # run-notebooks: + # uses: ./.github/workflows/run_notebooks.yml + # secrets: inherit diff --git a/.github/workflows/doctest.yml b/.github/workflows/doctest.yml index 13e1a6b8d..5cc5bacb6 100644 --- a/.github/workflows/doctest.yml +++ b/.github/workflows/doctest.yml @@ -1,5 +1,10 @@ on: workflow_call: + inputs: + runner: + type: string + required: true + default: "ubuntu-latest" secrets: AA_TOKEN: required: true @@ -7,7 +12,7 @@ on: required: true jobs: doctest: - runs-on: ubuntu-latest + runs-on: ${{inputs.runner}} steps: - name: Checkout repository uses: actions/checkout@v4 diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index d7aadfc19..9fb0f451d 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -10,15 +10,20 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: - doctest: - uses: ./.github/workflows/doctest.yml - secrets: inherit + # doctest: + # uses: ./.github/workflows/doctest.yml + # secrets: inherit lint: uses: ./.github/workflows/lint.yml secrets: inherit - test: - uses: ./.github/workflows/test.yml - secrets: inherit - run-notebooks: - uses: ./.github/workflows/run_notebooks.yml - secrets: inherit + # test: + # uses: ./.github/workflows/test.yml + # secrets: inherit + # run-notebooks: + # uses: ./.github/workflows/run_notebooks.yml + # secrets: inherit + macOs: + uses: ./.github/workflows/lint.yml + with: + runner: 'windows-latest' #"['windows-latest', 'macos-latest']" + secrets: inherit diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5427c44dc..db2e527ba 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,8 +1,13 @@ on: workflow_call: + inputs: + runner: + type: string + required: true + default: "ubuntu-latest" jobs: lint: - runs-on: ubuntu-latest + runs-on: ${{inputs.runner}} steps: - name: Checkout repository uses: actions/checkout@v4 diff --git a/.github/workflows/run_notebooks.yml b/.github/workflows/run_notebooks.yml index 70eb381dd..817a2f44a 100644 --- a/.github/workflows/run_notebooks.yml +++ b/.github/workflows/run_notebooks.yml @@ -1,5 +1,10 @@ on: workflow_call: + inputs: + runner: + type: string + required: true + default: "ubuntu-latest" secrets: AA_TOKEN: required: true @@ -7,7 +12,7 @@ on: required: true jobs: run-notebooks: - runs-on: ubuntu-latest + runs-on: ${{inputs.runner}} services: argilla-elastic-search: image: docker.elastic.co/elasticsearch/elasticsearch:8.5.3 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 36ab4da63..bc302d1d8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,5 +1,10 @@ on: workflow_call: + inputs: + runner: + type: string + required: true + default: "ubuntu-latest" secrets: AA_TOKEN: required: true @@ -7,7 +12,7 @@ on: required: true jobs: test: - runs-on: ubuntu-latest + runs-on: ${{inputs.runner}} services: argilla-elastic-search: image: docker.elastic.co/elasticsearch/elasticsearch:8.5.3