Skip to content

Commit

Permalink
revert to traditional uv pip install for now as setup-uv doesn't have…
Browse files Browse the repository at this point in the history
… permission for some reason
  • Loading branch information
DanielYang59 committed Sep 12, 2024
1 parent 1d1ec65 commit 4cafef7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ on:
workflow_dispatch:
workflow_call:

env:
UV_SYSTEM_PYTHON: 1

jobs:
tests:
strategy:
Expand All @@ -25,20 +22,20 @@ jobs:
- name: Check out repo
uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v2
- name: Set up Python
uses: actions/setup-python@v5
with:
enable-cache: true

- name: Set up Python ${{ matrix.version.python }}
run: uv python install ${{ matrix.version.python }}
python-version: ${{ matrix.version.python }}
cache: pip
cache-dependency-path: pyproject.toml

- name: Install chgnet through uv
run: |
uv pip install -e .[test,logging] --resolution=${{ matrix.version.resolution }}
pip install uv
uv pip install -e .[test,logging] --resolution=${{ matrix.version.resolution }} --system
- name: Run Tests
run: uv run pytest --capture=no --cov --cov-report=xml
run: pytest --capture=no --cov --cov-report=xml
env:
CHGNET_DEVICE: cpu

Expand Down
2 changes: 1 addition & 1 deletion chgnet/graph/cygraph.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def make_graph(
chg_UndirectedEdge = chgnet.graph.graph.UndirectedEdge


image_np = np.asarray(image)
image_np = np.asarray(image, dtype=np.int64)

cdef LongToDirectedEdgeList** node_neighbors
cdef Node this_node
Expand Down

0 comments on commit 4cafef7

Please sign in to comment.