Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: create composite setup action and allow more PR titles #550

Merged
merged 5 commits into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/actions/preparation/action.yml
Original file line number Diff line number Diff line change
@@ -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
BalduinLandolt marked this conversation as resolved.
Show resolved Hide resolved
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
Original file line number Diff line number Diff line change
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