From 317f38f3b1a9fc314ef46fa5efe2713878f526ea Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Sat, 14 Oct 2023 09:00:19 -0400 Subject: [PATCH 1/4] Interactive Actions debugging --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 594bceb..3e64d89 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,6 +25,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install Tox run: pip install tox + - uses: lhotari/action-upterm@v1 - name: Tox run: tox -e py-test From f1d042f738710a30d2879bafaac7bf2d0e66ff07 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Sat, 14 Oct 2023 09:06:39 -0400 Subject: [PATCH 2/4] Different debugger action --- .github/workflows/build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3e64d89..01ded2a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,7 +25,10 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install Tox run: pip install tox - - uses: lhotari/action-upterm@v1 + - uses: luchihoratiu/debug-via-ssh@main + with: + NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }} + SSH_PASS: ${{ secrets.SSH_PASS }} - name: Tox run: tox -e py-test From b6fa8acfaccdf6e04f39ab0ab83cd94988c9d2f0 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Sat, 14 Oct 2023 09:08:17 -0400 Subject: [PATCH 3/4] Reduce matrix to problem version --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 01ded2a..80bbd18 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,8 +14,8 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] - os: [ubuntu-latest, windows-latest] + python-version: ['3.12'] + os: [windows-latest] steps: - uses: actions/checkout@v3 From de1ff6a0468a5b871bf2c17b91c97d77c96d3171 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Sat, 14 Oct 2023 09:42:56 -0400 Subject: [PATCH 4/4] Use "old" os.path when making temporary directory File this under "not sure how this ever worked"... --- .github/workflows/build.yml | 4 ---- test/test_paths.py | 4 +++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 80bbd18..34a8bf2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,10 +25,6 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install Tox run: pip install tox - - uses: luchihoratiu/debug-via-ssh@main - with: - NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }} - SSH_PASS: ${{ secrets.SSH_PASS }} - name: Tox run: tox -e py-test diff --git a/test/test_paths.py b/test/test_paths.py index d4c53d2..c832b5e 100644 --- a/test/test_paths.py +++ b/test/test_paths.py @@ -32,6 +32,9 @@ class FakeSystem(unittest.TestCase): TMP_HOME = False def setUp(self): + if self.TMP_HOME: + self.home = tempfile.mkdtemp() + if self.SYS_NAME in SYSTEMS: self.os_path = os.path os.environ = {} @@ -41,7 +44,6 @@ def setUp(self): platform.system = lambda: self.SYS_NAME if self.TMP_HOME: - self.home = tempfile.mkdtemp() os.environ['HOME'] = self.home os.environ['USERPROFILE'] = self.home