From da3e51b7878f3c7817856c0575d0b92e6c5f0bd5 Mon Sep 17 00:00:00 2001 From: "Haoyu (Daniel)" Date: Thu, 12 Sep 2024 10:36:11 +0800 Subject: [PATCH] revert to traditional uv pip install for now as setup-uv doesn't have permission for some reason --- .github/workflows/test.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f146fe2..f05a331 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,9 +7,6 @@ on: workflow_dispatch: workflow_call: -env: - UV_SYSTEM_PYTHON: 1 - jobs: tests: strategy: @@ -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