File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed
spyder_kernels/utils/tests Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff 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 : |
Original file line number Diff line number Diff 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+ )
6975def 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" )
You can’t perform that action at this time.
0 commit comments