Skip to content

Commit

Permalink
Merge pull request #338 from WMD-group/uv_ci
Browse files Browse the repository at this point in the history
Migrate CI dependency installation from pip to uv
  • Loading branch information
AntObi authored Dec 1, 2024
2 parents 70122e8 + f59baf8 commit 3062f8e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,21 @@ jobs:

runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: pyproject.toml

- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel setuptools
pip install -e ".[crystal_space,dev]"
pip install pytest-cov
pip install uv
uv pip install -e ".[optional,dev]" --system
- name: Run tests and collect coverage
env:
MP_API_KEY: ${{ secrets.MP_API_KEY }}
Expand Down
15 changes: 15 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,21 @@ visualisation = [
"dash",
]

optional = [
"pydantic>=2.9.2",
"mp-api>=0.42.2",
"pymatviz>=0.14",
"seaborn>=0.13.2",
"pymatgen>=2024.2.20",
"matminer>=0.9.2",
"umap-learn>=0.5.3",
"kaleido>=0.2.1",
"ase>=3.22.0",
"numpy",
"ElementEmbeddings>=0.4",
"dash>=2.18.2",

]
strict = [
"pydantic==2.9.2",
"mp-api==0.42.2",
Expand Down

0 comments on commit 3062f8e

Please sign in to comment.