Skip to content

Commit

Permalink
CI: setup uv (#639)
Browse files Browse the repository at this point in the history
  • Loading branch information
njzjz committed Apr 22, 2024
1 parent a5ddff2 commit 17effb9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Install dependencies
run: python -m pip install .[amber,ase,pymatgen] coverage ./tests/plugin
run: 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
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test_import.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 --system .
- run: python -c 'import dpdata'

0 comments on commit 17effb9

Please sign in to comment.