Skip to content

Commit 905a05a

Browse files
authored
CI: Try to ensure Cygwin tests start in right place
There's a bunch of failures due to "git: not in repository" errors, so let's try to stay in a repository.
1 parent 3852b78 commit 905a05a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/tests-cygwin.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
1818
- '9'
1919

2020
steps:
21+
- name: Tell git to use proper newlines
22+
run: git config --global core.autocrlf input
23+
2124
- name: Checkout
2225
uses: actions/checkout@v2
2326

@@ -33,6 +36,8 @@ jobs:
3336
shell: bash.exe -eo pipefail -o igncr "{0}"
3437
env:
3538
PATH: "/bin:/usr/bin:/usr/local/bin:/usr/lib/lapack"
39+
TMP: "/tmp"
40+
TEMP: "/tmp"
3641
run: |
3742
/usr/bin/python -m pip install nox
3843
nox --version
@@ -41,7 +46,12 @@ jobs:
4146
shell: bash.exe -eo pipefail -o igncr "{0}"
4247
env:
4348
PATH: "/bin:/usr/bin:/usr/local/bin:/usr/lib/lapack"
44-
run: nox -s test-3.${{ matrix.python-minor }}
49+
CHERE_INVOKING: 1
50+
TMP: "/tmp"
51+
TEMP: "/tmp"
52+
run: |
53+
cd "${GITHUB_WORKSPACE}"
54+
nox -s test-3.${{ matrix.python-minor }}
4555
4656
- name: Send coverage report
4757
uses: codecov/codecov-action@v1

0 commit comments

Comments
 (0)