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 da3e51b
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 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: |
pip install uv
uv pip install -e .[test,logging] --resolution=${{ matrix.version.resolution }}
- 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

0 comments on commit da3e51b

Please sign in to comment.