File tree 1 file changed +8
-11
lines changed
1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change 7
7
workflow_dispatch :
8
8
workflow_call :
9
9
10
- env :
11
- UV_SYSTEM_PYTHON : 1
12
-
13
10
jobs :
14
11
tests :
15
12
strategy :
@@ -25,20 +22,20 @@ jobs:
25
22
- name : Check out repo
26
23
uses : actions/checkout@v4
27
24
28
- - name : Install uv
29
- uses : astral-sh /setup-uv@v2
25
+ - name : Set up Python
26
+ uses : actions /setup-python@v5
30
27
with :
31
- enable-cache : true
32
-
33
- - name : Set up Python ${{ matrix.version.python }}
34
- run : uv python install ${{ matrix.version.python }}
28
+ python-version : ${{ matrix.version.python }}
29
+ cache : pip
30
+ cache-dependency-path : pyproject.toml
35
31
36
32
- name : Install chgnet through uv
37
33
run : |
38
- uv pip install -e .[test,logging] --resolution=${{ matrix.version.resolution }}
34
+ pip install uv
35
+ uv pip install -e .[test,logging] --resolution=${{ matrix.version.resolution }} --system
39
36
40
37
- name : Run Tests
41
- run : uv run pytest --capture=no --cov --cov-report=xml
38
+ run : pytest --capture=no --cov --cov-report=xml
42
39
env :
43
40
CHGNET_DEVICE : cpu
44
41
You can’t perform that action at this time.
0 commit comments