-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add more test runners for newer Python versions (#1755)
- Loading branch information
Showing
11 changed files
with
288 additions
and
163 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,36 @@ | ||
name: 'Setup Python Environment' | ||
description: 'Set up Python and install dependencies' | ||
inputs: | ||
python_version: | ||
description: 'Python version to set up' | ||
required: false | ||
default: "3.8" | ||
extras: | ||
description: 'extra deps: poetry install -E whatever' | ||
required: false | ||
default: "" | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ inputs.python_version }} | ||
cache: 'pip' | ||
|
||
- name: Setup cache for poetry | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cache/pypoetry | ||
~/.poetry | ||
!~/.cache/pypoetry/artifacts | ||
!~/.cache/pypoetry/repositories | ||
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}-${{ inputs.python_version }}-${{ inputs.extras }} | ||
|
||
- name: Install dependencies | ||
shell: bash | ||
run: | | ||
pip install --upgrade pip poetry | ||
poetry config virtualenvs.create false | ||
poetry install --no-interaction --no-ansi ${{ inputs.extras }} |
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
Oops, something went wrong.