-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathaction.yml
More file actions
34 lines (29 loc) · 875 Bytes
/
action.yml
File metadata and controls
34 lines (29 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Shared CI Workflow
description: 'Build, lint, and test a package'
inputs:
workspace_path:
description: 'Path to the package to build/test.'
required: true
python_version:
description: 'Python version to use'
required: false
default: '3.11'
runs:
using: composite
steps:
- name: Set up Python ${{ inputs.python_version }}
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python_version }}
- name: Install poetry
uses: abatilo/actions-poetry@7b6d33e44b4f08d7021a1dee3c044e9c253d6439
- name: Install Dependencies
shell: bash
working-directory: ${{ inputs.workspace_path }}
run: poetry install
- name: Lint
shell: bash
run: make -C ${{ inputs.workspace_path }} lint
- name: Test
shell: bash
run: make -C ${{ inputs.workspace_path }} test