-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deduplicate GitHub Actions steps. (#81)
Now that GitHub supports nested composite actions: actions/runner#646 (comment)
- Loading branch information
Showing
5 changed files
with
25 additions
and
12 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Initialize Dependencies | ||
description: Install project dependencies | ||
|
||
inputs: | ||
python-version: | ||
description: Python version to install | ||
required: false | ||
default: "3.10" | ||
|
||
outputs: | ||
python-version: | ||
description: Same as input | ||
value: ${{ inputs.python-version }} | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- {name: Install Python, uses: actions/setup-python@v2, with: {python-version: "${{ inputs.python-version }}"}} | ||
- {name: Install Poetry, uses: abatilo/actions-poetry@v2.1.4} | ||
- {name: Cache venv, uses: actions/cache@v2, with: {path: .venv, key: "${{ runner.os }}-venv-${{ hashFiles('poetry.lock') }}"}, id: cache} | ||
- {name: Install dependencies, run: make deps, shell: bash, if: "steps.cache.outputs.cache-hit != 'true'"} |
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
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
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
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