Skip to content

Commit 5b8ea91

Browse files
committed
test
1 parent c311e64 commit 5b8ea91

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

.github/workflows/linux-pip-tests.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,17 @@ jobs:
4646
shell: bash -l {0}
4747
run: |
4848
pip install -e .[test]
49+
- name: Install Pixi
50+
uses: prefix-dev/[email protected]
51+
with:
52+
run-install: false
4953
- name: Create environment with Pixi
5054
shell: bash -l {0}
5155
run: |
52-
curl -fsSL https://pixi.sh/install.sh | sh
5356
cd ~
54-
~/.pixi/bin/pixi init pixi-test
57+
pixi init pixi-test
5558
cd pixi-test
56-
~/.pixi/bin/pixi add python
59+
pixi add python
5760
- name: Show environment information
5861
shell: bash -l {0}
5962
run: |

spyder_kernels/utils/tests/test_pythonenv.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,15 @@ def test_get_env_dir():
6565
assert output == "foobar"
6666

6767

68-
@pytest.mark.skipif(not os.environ.get("CI"), reason="Only works on CIs")
68+
@pytest.mark.skipif(
69+
not (
70+
shutil.which("pixi.exe" if os.name == "nt" else "pixi")
71+
and os.environ.get("CI")
72+
),
73+
reason="Only works with Pixi on CIs",
74+
)
6975
def test_get_pixi_info():
7076
home_path = Path(os.environ["HOME"])
71-
72-
# Skip if pixi is not available
73-
#if not os.path.isfile(home_path / ".pixi" / "bin" / "pixi"):
74-
# return
75-
7677
pixi_env_dir = home_path / "pixi-test" / ".pixi" / "envs" / "default"
7778
pixi_env_info = get_pixi_manifest_path_and_env_name(
7879
str(pixi_env_dir / "python.exe")

0 commit comments

Comments
 (0)