Skip to content

Commit

Permalink
Add runner as an option to all workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasKoehneckeAA committed Apr 9, 2024
1 parent 56677fe commit ea28174
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 12 deletions.
27 changes: 19 additions & 8 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
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

7 changes: 6 additions & 1 deletion .github/workflows/doctest.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
on:
workflow_call:
inputs:
runner:
required: true
type: string
default: "['ubuntu-latest']"
secrets:
AA_TOKEN:
required: true
HUGGING_FACE_TOKEN:
required: true
jobs:
doctest:
runs-on: ubuntu-latest
runs-on: ${{ fromJSON(inputs.runner) }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
on:
workflow_call:
inputs:
runner:
required: true
type: string
default: "['ubuntu-latest']"
jobs:
lint:
runs-on: ubuntu-latest
runs-on: ${{ fromJSON(inputs.runner) }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/run_notebooks.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
on:
workflow_call:
inputs:
runner:
required: true
type: string
default: "['ubuntu-latest']"
secrets:
AA_TOKEN:
required: true
HUGGING_FACE_TOKEN:
required: true
jobs:
run-notebooks:
runs-on: ubuntu-latest
runs-on: ${{ fromJSON(inputs.runner) }}
services:
argilla-elastic-search:
image: docker.elastic.co/elasticsearch/elasticsearch:8.5.3
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
on:
workflow_call:
inputs:
runner:
required: true
type: string
default: "['ubuntu-latest']"
secrets:
AA_TOKEN:
required: true
HUGGING_FACE_TOKEN:
required: true
jobs:
test:
runs-on: ubuntu-latest
runs-on: ${{ fromJSON(inputs.runner) }}
services:
argilla-elastic-search:
image: docker.elastic.co/elasticsearch/elasticsearch:8.5.3
Expand Down

0 comments on commit ea28174

Please sign in to comment.