File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 26
26
python-version : ${{ matrix.python-version }}
27
27
- name : Install dependencies
28
28
run : |
29
+ if [ "$RUNNER_OS" == "Windows" ] then;
30
+ echo "TMP=$env:USERPROFILE\AppData\Local\Temp" >> $env:GITHUB_ENV
31
+ echo "TEMP=$env:USERPROFILE\AppData\Local\Temp" >> $env:GITHUB_ENV
32
+ fi
29
33
git config --global user.email "[email protected] "
30
34
git config --global user.name "Your Name"
31
35
python -m pip install --upgrade pip
Original file line number Diff line number Diff line change 1
1
.idea
2
+ .vscode
2
3
__pycache__
3
4
.DS_Store
4
5
* .json
Original file line number Diff line number Diff line change @@ -57,14 +57,10 @@ def test_has_git_false(self) -> None:
57
57
self .assertFalse (has_git ())
58
58
os .chdir (self .temp_dir .name )
59
59
60
- # TODO: fix this test on Windows
61
- @unittest .skipIf (platform .system () == 'Windows' , 'Inconsistent user path on Windows in GitHub Actions' )
62
60
def test_get_git_root (self ) -> None :
63
61
# Ideally should be self.temp_dir.name == get_git_root() but the OS may add a prefix like /private
64
62
self .assertTrue (get_git_root ().endswith (self .temp_dir .name ))
65
63
66
- # TODO: fix this test on Windows
67
- @unittest .skipIf (platform .system () == 'Windows' , 'Inconsistent user path on Windows in GitHub Actions' )
68
64
def test_get_git_root_subdir (self ) -> None :
69
65
subdir = os .path .join (self .temp_dir .name , 'subdir' )
70
66
os .makedirs (subdir )
You can’t perform that action at this time.
0 commit comments