Skip to content

Commit

Permalink
CI: setup uv
Browse files Browse the repository at this point in the history
  • Loading branch information
njzjz authored Apr 16, 2024
1 parent 468ee33 commit c6f1b56
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: 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
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 .
- run: python -c 'import dpdata'

0 comments on commit c6f1b56

Please sign in to comment.