Skip to content

Commit d3348d1

Browse files
committed
Merge branch 'bugfix/test-with-py39-win' into 'master'
Avoid hard-coding latest stable Python. Closes #109. Closes #109 See merge request python-devs/importlib_resources!107
2 parents e8a8572 + 78d5a90 commit d3348d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ Windows tests:
2323
# Install latest stable Python
2424
- choco install python
2525
# Link latest stable Python to C:\Python
26-
- cmd /c mklink /d C:\Python Python38
26+
- py -c "import os, sys, pathlib; os.symlink(pathlib.Path(sys.executable).parent.name, r'C:\Python')"
2727
# Add Python and its scripts to the Path
2828
- $env:PATH = 'C:\Python;C:\Python\Scripts;' + $env:PATH
2929
# Install older Pythons
30+
- choco install python --side-by-side --version=3.8.6
3031
- choco install python --side-by-side --version=3.7.6
3132
- choco install python --side-by-side --version=3.6.8
3233
- choco install python --side-by-side --version=3.5.4.20200110

0 commit comments

Comments
 (0)