Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): move setup into reusable workflow (#715)
- Loading branch information
Showing
2 changed files
with
40 additions
and
79 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,20 @@ | ||
--- | ||
|
||
name: Setup - Install python, poetry, and dependencies | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install poetry | ||
run: | | ||
curl -sSL https://install.python-poetry.org | python3 - | ||
poetry self add poetry-exec-plugin | ||
shell: bash | ||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.12 | ||
# attempt to restore dependencies from cache (if successful, the following `poetry install` will be a no-op) | ||
cache: poetry | ||
- name: Install Python dependencies | ||
run: poetry install | ||
shell: bash |
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