Skip to content

Commit 2377b15

Browse files
committedDec 1, 2024
Update ci
1 parent e48be49 commit 2377b15

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed
 

‎.github/workflows/ci.yml

+20-9
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,31 @@ jobs:
2323

2424
runs-on: ${{matrix.os}}
2525
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+
3136
- name: Install dependencies
3237
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+
3645
- name: Run tests and collect coverage
3746
env:
3847
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
4051
- name: Upload coverage reports to CodeCov
4152
uses: codecov/codecov-action@v4
4253
with:

0 commit comments

Comments
 (0)
Please sign in to comment.