Debian Codegraph @

.github/actions/set-dev-env/action.yml

raw
1 # Reusable action to set our PST development environment
2 # DO NOT use for release jobs since we cache dependencies
3 # IMPORTANT: if you make changes to this action, you will need to open a follow-up
4 # PR after merge to update the action SHA in the a11y, CI, docs, and prerelease
5 # workflows
6 name: Setup PST CI environment
7 description: Create a PST dev environment
8
9 inputs:
10 python-version:
11 description: Default Python version to use if none is specified
12 required: false
13 default: "3.12"
14 pandoc:
15 description: Whether this should install pandoc or not
16 required: false
17 default: "false"
18 graphviz:
19 description: Whether this should install Graphviz or not
20 required: false
21 default: "false"
22
23 runs:
24 using: composite
25 steps:
26 - name: "Setup Python 🐍"
27 uses: actions/setup-python@v5
28 with:
29 python-version: ${{ inputs.python-version }}
30 cache: "pip"
31 cache-dependency-path: "pyproject.toml"
32 allow-prereleases: true
33
34 - run: python -Im pip install tox-uv
35 shell: bash
36
37 - name: "Install pandoc 📝"
38 uses: r-lib/actions/setup-pandoc@v2
39 with:
40 pandoc-version: "latest"
41 if: ${{ inputs.pandoc }} == true
42
43 - name: "Install Graphviz"
44 uses: ts-graphviz/setup-graphviz@v2
45 if: ${{ inputs.graphviz }} == true