@@ -23,20 +23,31 @@ jobs:
23
23
24
24
runs-on : ${{matrix.os}}
25
25
steps :
26
- - uses : actions/checkout@v4
27
- - name : Set up Python ${{ matrix.python-version }}
28
- uses : actions/setup-python@v5
29
- with :
30
- python-version : ${{ matrix.python-version }}
26
+ - name : Checkout repository
27
+ uses : actions/checkout@v4
28
+
29
+ - name : Set up micromamba
30
+ uses : mamba-org/setup-micromamba@main
31
+
32
+ - name : Create mamba environment
33
+ run : |
34
+ micromamba create -n smact_env python=${{ matrix.python-version }} --yes
35
+
31
36
- name : Install dependencies
32
37
run : |
33
- python -m pip install --upgrade pip wheel setuptools
34
- pip install -e ".[crystal_space,dev]"
35
- pip install pytest-cov
38
+ micromamba activate smact_env
39
+ pip install uv
40
+ uv pip install build
41
+ python -m build --wheel
42
+ uv pip install dist/*.whl
43
+ uv pip install smact[dev,optional]
44
+
36
45
- name : Run tests and collect coverage
37
46
env :
38
47
MP_API_KEY : ${{ secrets.MP_API_KEY }}
39
- run : python -m pytest --cov=smact --cov-report=xml -v
48
+ run : |
49
+ micromamba activate smact_env
50
+ python -m pytest --cov=smact --cov-report=xml -v
40
51
- name : Upload coverage reports to CodeCov
41
52
uses : codecov/codecov-action@v4
42
53
with :
0 commit comments