Skip to content

Commit

Permalink
fix conda environment Python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mdekstrand committed Jul 31, 2024
1 parent 1dc690a commit 6214fb2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- name: 👢 Generate Conda environment file
run: |
pip install -e .
python -m lkdev.conda -o ci-environment.yml -e all requirements-test.txt lenskit/pyproject.toml
python -m lkdev.conda -o ci-environment.yml -p ${{matrix.python}} -e all requirements-test.txt lenskit/pyproject.toml
- id: setup
name: 📦 Set up Conda environment
uses: mamba-org/setup-micromamba@v1
Expand Down Expand Up @@ -273,7 +273,7 @@ jobs:
- name: 👢 Generate Conda environment file
run: |
pip install -e .
python -m lkdev.conda -o ci-environment.yml -e all requirements-test.txt lenskit/pyproject.toml lenskit-funksvd/pyproject.toml
python -m lkdev.conda -o ci-environment.yml -p ${{matrix.python}} -e all requirements-test.txt lenskit/pyproject.toml lenskit-funksvd/pyproject.toml
- id: setup
name: 📦 Set up Conda environment
uses: mamba-org/setup-micromamba@v1
Expand Down Expand Up @@ -381,7 +381,7 @@ jobs:
- name: 👢 Generate Conda environment file
run: |
pip install -e .
python -m lkdev.conda -o ci-environment.yml -e all requirements-test.txt lenskit/pyproject.toml lenskit-implicit/pyproject.toml
python -m lkdev.conda -o ci-environment.yml -p ${{matrix.python}} -e all requirements-test.txt lenskit/pyproject.toml lenskit-implicit/pyproject.toml
- id: setup
name: 📦 Set up Conda environment
uses: mamba-org/setup-micromamba@v1
Expand Down Expand Up @@ -489,7 +489,7 @@ jobs:
- name: 👢 Generate Conda environment file
run: |
pip install -e .
python -m lkdev.conda -o ci-environment.yml -e all requirements-test.txt lenskit/pyproject.toml lenskit-hpf/pyproject.toml
python -m lkdev.conda -o ci-environment.yml -p ${{matrix.python}} -e all requirements-test.txt lenskit/pyproject.toml lenskit-hpf/pyproject.toml
- id: setup
name: 📦 Set up Conda environment
uses: mamba-org/setup-micromamba@v1
Expand Down Expand Up @@ -539,7 +539,7 @@ jobs:
- name: 👢 Generate Conda environment file
run: |
pip install -e .
python -m lkdev.conda -o ci-environment.yml -e all requirements-test.txt lenskit/pyproject.toml lenskit-funksvd/pyproject.toml lenskit-implicit/pyproject.toml
python -m lkdev.conda -o ci-environment.yml -p 3.10 -e all requirements-test.txt lenskit/pyproject.toml lenskit-funksvd/pyproject.toml lenskit-implicit/pyproject.toml
- id: setup
name: 📦 Set up Conda environment
uses: mamba-org/setup-micromamba@v1
Expand Down Expand Up @@ -596,7 +596,7 @@ jobs:
- name: 👢 Generate Conda environment file
run: |
pip install -e .
python -m lkdev.conda -o ci-environment.yml -e all requirements-test.txt requirements-demo.txt lenskit/pyproject.toml lenskit-funksvd/pyproject.toml lenskit-implicit/pyproject.toml
python -m lkdev.conda -o ci-environment.yml -p 3.10 -e all requirements-test.txt requirements-demo.txt lenskit/pyproject.toml lenskit-funksvd/pyproject.toml lenskit-implicit/pyproject.toml
- id: setup
name: 📦 Set up Conda environment
uses: mamba-org/setup-micromamba@v1
Expand Down
2 changes: 1 addition & 1 deletion lkdev/workflows/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def job_strategy(options: JobOptions) -> dict[str, Any]:


def steps_setup_conda(options: JobOptions) -> list[GHStep]:
ctool = ["python -m lkdev.conda", "-o", "ci-environment.yml"]
ctool = ["python -m lkdev.conda", "-o", "ci-environment.yml", "-p", options.python_version]
if options.extras:
for e in options.extras:
ctool += ["-e", e]
Expand Down

0 comments on commit 6214fb2

Please sign in to comment.