-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yaml
More file actions
36 lines (32 loc) · 1003 Bytes
/
action.yaml
File metadata and controls
36 lines (32 loc) · 1003 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
35
36
name: "Setup Python project"
description: "Setup Python, install Poetry, and install project dependencies"
inputs:
python-version:
description: "Python version to install"
required: true
runs:
using: "composite"
steps:
- name: "Install system dependencies"
shell: bash
run: |
if ! dpkg -s libxslt1-dev >/dev/null 2>&1; then
sudo apt-get update
sudo apt-get install -y libxml2-dev libxslt1-dev
fi
- name: "Install Poetry"
shell: bash
run: |
if ! command -v poetry &> /dev/null; then
curl --proto "=https" -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH
fi
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
cache: 'poetry'
cache-dependency-path: '**/poetry.lock'
- name: "Install dependencies"
shell: bash
run: make dependencies