Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bc1d485

Browse files
committedSep 12, 2024··
revert to traditional uv pip install for now as setup-uv doesn't have permission for some reason
1 parent 1d1ec65 commit bc1d485

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed
 

‎.github/workflows/test.yml

+8-11
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ on:
77
workflow_dispatch:
88
workflow_call:
99

10-
env:
11-
UV_SYSTEM_PYTHON: 1
12-
1310
jobs:
1411
tests:
1512
strategy:
@@ -25,20 +22,20 @@ jobs:
2522
- name: Check out repo
2623
uses: actions/checkout@v4
2724

28-
- name: Install uv
29-
uses: astral-sh/setup-uv@v2
25+
- name: Set up Python
26+
uses: actions/setup-python@v5
3027
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
3531

3632
- name: Install chgnet through uv
3733
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
3936
4037
- name: Run Tests
41-
run: uv run pytest --capture=no --cov --cov-report=xml
38+
run: pytest --capture=no --cov --cov-report=xml
4239
env:
4340
CHGNET_DEVICE: cpu
4441

0 commit comments

Comments
 (0)
Please sign in to comment.