Skip to content

Commit

Permalink
chore: create composite setup action and allow more PR titles (#550)
Browse files Browse the repository at this point in the history
Co-authored-by: Johannes Nussbaum <39048939+jnussbaum@users.noreply.github.com>
  • Loading branch information
BalduinLandolt and jnussbaum committed Oct 5, 2023
1 parent 68605bd commit 2084999
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .github/actions/preparation/action.yml
@@ -0,0 +1,27 @@
name: "Preparation"
description: "Preparation steps to run tests"

runs:
using: "composite"
steps:
- name: Checkout source
uses: actions/checkout@v3
with:
submodules: recursive

- name: Install poetry
shell: bin/bash
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry self add poetry-exec-plugin
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
# attempt to restore dependencies from cache (if successful, the following `poetry install` will be a no-op)
cache: poetry

- name: Install Python dependencies
shell: bin/bash
run: poetry install
3 changes: 1 addition & 2 deletions .github/workflows/check-pr-title.yml
Expand Up @@ -15,8 +15,7 @@ jobs:
with:
regex:
"^[a-z]+(\\([0-9a-z\\-_, ]+\\))?!?: .+\\(DEV-\\d+(, DEV-\\d+)*\\)$|\
^chore: release \\d+\\.\\d+\\.\\d+$|\
^chore\\(deps\\): bump dependencies$"
^chore.*"
# see here on how to cope with linebreaks in YAML: https://stackoverflow.com/a/21699210/14414188
allowed_prefixes: "fix,refactor,feat,docs,chore,style,test"
disallowed_prefixes: "feature,hotfix"
Expand Down

0 comments on commit 2084999

Please sign in to comment.