-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
72 changed files
with
4,871 additions
and
1,229 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
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,27 @@ | ||
name: Install Node, pnpm and dependencies. | ||
description: Install Node, pnpm and dependencies using cache. | ||
|
||
inputs: | ||
node-version: | ||
description: Node.js version | ||
required: true | ||
pnpm-version: | ||
description: pnpm version | ||
required: true | ||
pnpm-install-args: | ||
description: Extra arguments for pnpm install, e.g. --no-frozen-lockfile. | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- uses: pnpm/action-setup@v4 | ||
with: | ||
version: ${{ inputs.pnpm-version }} | ||
- name: Use Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ inputs.node-version }} | ||
cache: pnpm | ||
- name: Install JS dependencies | ||
run: pnpm install ${{ inputs.pnpm-install-args }} | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Install Python, poetry and dependencies. | ||
description: Install Python, Poetry and poetry dependencies using cache | ||
|
||
inputs: | ||
python-version: | ||
description: Python version | ||
required: true | ||
poetry-version: | ||
description: Poetry version | ||
required: true | ||
poetry-working-directory: | ||
description: Working directory for poetry command. | ||
required: false | ||
default: . | ||
poetry-install-args: | ||
description: Extra arguments for poetry install, e.g. --with tests. | ||
required: false | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Cache poetry install | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.local | ||
key: poetry-${{ runner.os }}-${{ inputs.poetry-version }}-0 | ||
- name: Install Poetry | ||
run: pipx install 'poetry==${{ inputs.poetry-version }}' | ||
shell: bash | ||
- name: Set up Python ${{ inputs.python-version }} | ||
id: setup_python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ inputs.python-version }} | ||
cache: poetry | ||
cache-dependency-path: ${{ inputs.poetry-working-directory }}/poetry.lock | ||
- name: Set Poetry environment | ||
run: poetry -C '${{ inputs.poetry-working-directory }}' env use '${{ steps.setup_python.outputs.python-path }}' | ||
shell: bash | ||
- name: Install Python dependencies | ||
run: poetry -C '${{ inputs.poetry-working-directory }}' install ${{ inputs.poetry-install-args }} | ||
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
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
Oops, something went wrong.