From c6f1b56dc5bc4af630c8e0faab7d52f1a9b6cab2 Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Mon, 15 Apr 2024 22:42:50 -0400 Subject: [PATCH] CI: setup uv --- .github/workflows/test.yml | 6 ++---- .github/workflows/test_import.yml | 3 ++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e4d9a91f..56627cf3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,11 +18,9 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - # install rdkit and openbabel - - name: Install rdkit - run: python -m pip install rdkit openbabel-wheel + - run: python -m pip install uv - name: Install dependencies - run: python -m pip install .[amber,ase,pymatgen] coverage ./tests/plugin + run: python -m uv pip install --system .[amber,ase,pymatgen] coverage ./tests/plugin rdkit openbabel-wheel - name: Test run: cd tests && coverage run --source=../dpdata -m unittest && cd .. && coverage combine tests/.coverage && coverage report - name: Run codecov diff --git a/.github/workflows/test_import.yml b/.github/workflows/test_import.yml index 6ab0dbe2..d7af658d 100644 --- a/.github/workflows/test_import.yml +++ b/.github/workflows/test_import.yml @@ -13,5 +13,6 @@ jobs: with: python-version: '3.9' architecture: 'x64' - - run: python -m pip install . + - run: python -m pip install uv + - run: python -m uv pip install . - run: python -c 'import dpdata'