@@ -7,16 +7,18 @@ inputs:
7
7
default : ' 3.9' # Lowest supported version
8
8
required : false
9
9
extras :
10
- description : aiida-core extras (including brackets)
11
- default : ' '
10
+ description : list of optional dependencies
11
+ # NOTE: The default 'pre-commit' extra recursively contains
12
+ # other extras needed to run the tests.
13
+ default : pre-commit
12
14
required : false
13
15
# NOTE: Hard-learned lesson: we cannot use type=boolean here, apparently :-(
14
16
# https://stackoverflow.com/a/76294014
15
17
# NOTE2: When installing from lockfile, aiida-core and its dependencies
16
18
# are installed in a virtual environment located in .venv directory.
17
19
# Subsuquent jobs steps must either activate the environment or use `uv run`
18
20
from-lock :
19
- description : Install aiida-core dependencies from a uv lock file
21
+ description : Install aiida-core dependencies from uv lock file
20
22
default : ' true'
21
23
required : false
22
24
@@ -29,19 +31,18 @@ runs:
29
31
python-version : ${{ inputs.python-version }}
30
32
31
33
- name : Set up uv
32
- uses : astral-sh/setup-uv@v4
34
+ uses : astral-sh/setup-uv@v5
33
35
with :
34
- version : 0.5.6
36
+ version : 0.5.x
37
+ python-version : ${{ inputs.python-version }}
35
38
36
39
- name : Install dependencies from uv lock
37
40
if : ${{ inputs.from-lock == 'true' }}
38
41
# NOTE: We're asserting that the lockfile is up to date
39
- # NOTE2: 'pre-commit' extra recursively contains other extras
40
- # needed to run the tests.
41
- run : uv sync --locked --extra pre-commit
42
+ run : uv sync --locked --extra ${{ inputs.extras }}
42
43
shell : bash
43
44
44
45
- name : Install aiida-core
45
46
if : ${{ inputs.from-lock != 'true' }}
46
- run : uv pip install --system - e .${{ inputs.extras }}
47
+ run : uv pip install -e .${{ inputs.extras }}
47
48
shell : bash
0 commit comments