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 4e05136
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 21 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
@@ -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
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:
type: string
required: true
default: "ubuntu-latest"
secrets:
AA_TOKEN:
required: true
HUGGING_FACE_TOKEN:
required: true
jobs:
doctest:
runs-on: ubuntu-latest
runs-on: ${{inputs.runner}}
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
23 changes: 14 additions & 9 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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:
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
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:
type: string
required: true
default: "ubuntu-latest"
secrets:
AA_TOKEN:
required: true
HUGGING_FACE_TOKEN:
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
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:
type: string
required: true
default: "ubuntu-latest"
secrets:
AA_TOKEN:
required: true
HUGGING_FACE_TOKEN:
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
Expand Down

0 comments on commit 4e05136

Please sign in to comment.