Skip to content

Commit

Permalink
fix: add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
majkshkurti committed Aug 18, 2023
1 parent 95960a4 commit 8e8c312
Show file tree
Hide file tree
Showing 17 changed files with 53 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/actions/client-cache-build/action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Cache production build binaries'
name: "Cache production build binaries"
description: "Cache or restore if necessary"

inputs:
Expand Down
8 changes: 4 additions & 4 deletions .github/actions/pnpm-install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@
########################################################################################


name: 'PNPM install'
description: 'Run pnpm install with cache enabled'
name: "PNPM install"
description: "Run pnpm install with cache enabled"

inputs:
enable-corepack:
description: 'Enable corepack'
description: "Enable corepack"
required: false
default: 'false'
cwd:
description: "Changes node's process.cwd() if the project is not located on the root. Default to process.cwd()"
required: false
default: '.'
node_version:
description: 'Node version to use'
description: "Node version to use"
required: false
default: v18.x

Expand Down
48 changes: 48 additions & 0 deletions .github/actions/poetry-install/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: "Poetry install"
description: "Run poetry install with cache enabled"

inputs:
cwd:
description: "Changes process.cwd() if the project is not located on the root. Default to process.cwd()"
required: false
default: "."
python_version:
description: "Python version to use"
required: false
default: 3.11.4

runs:
using: "composite"
steps:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python_version }}

- name: Load cached Poetry installation
id: cached-poetry
uses: actions/cache@v3
with:
path: ~/.local
key: poetry-0

- name: Install Poetry
if: steps.cached-poetry.outputs.cache-hit != 'true'
uses: snok/[email protected]
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true

- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('${{ inputs.cwd }}/poetry.lock') }}

- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
working-directory: ${{ inputs.cwd }}
run: poetry install --no-interaction --no-root
shell: bash
Empty file.
Empty file added .github/workflows/api-pr.yml
Empty file.
Empty file.
Empty file added .github/workflows/api-test.yml
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file added .github/workflows/docs-pr.yml
Empty file.
Empty file.
Empty file.
Empty file added .github/workflows/geoapi-pr.yml
Empty file.
Empty file.
Empty file.

0 comments on commit 8e8c312

Please sign in to comment.