-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
25 additions
and
30 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,24 @@ | ||
name: Reusable build workflow | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
os: | ||
default: "ubuntu-20.04" | ||
description: "Value for 'runs-on'" | ||
required: false | ||
type: string | ||
python: | ||
default: "3.9" | ||
description: "Value for 'python-version'" | ||
required: false | ||
type: string | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ inputs.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ inputs.python }} | ||
- name: Install dependencies | ||
run: | | ||
pip install poetry | ||
poetry install --no-interaction | ||
name: "Reusable build workflow" | ||
inputs: | ||
# os: | ||
# default: "ubuntu-20.04" | ||
# description: "Value for 'runs-on'" | ||
# required: false | ||
# type: string | ||
python: | ||
default: "3.9" | ||
description: "Value for 'python-version'" | ||
required: false | ||
type: string | ||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ inputs.python }} | ||
- name: Install dependencies | ||
run: | | ||
pip install poetry | ||
poetry install --no-interaction |
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