From 907eb839513189125ae36eaac45599d2e14c5c20 Mon Sep 17 00:00:00 2001 From: Pavel Zwerschke Date: Thu, 16 Nov 2023 01:14:04 +0100 Subject: [PATCH 1/3] Add debug test --- .github/workflows/test.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8c3f3a3..78ed932 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -390,6 +390,21 @@ jobs: pixi run python --version | grep -q 3.11 pixi run test | grep -q "Hello world" + debug: + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + - name: Move pixi.toml + run: mv test/default/* . + # test that setup-pixi does debug logging + - uses: ./ + env: + RUNNER_DEBUG: true + - run: pixi run python --version | grep -q 3.11 + test-cache1: name: Test cache 1/2 timeout-minutes: 10 From 5b18bdc1e0aa2f0920b2fb32a698c7ec3aae5928 Mon Sep 17 00:00:00 2001 From: Pavel Zwerschke Date: Thu, 16 Nov 2023 01:16:31 +0100 Subject: [PATCH 2/3] ACTIONS_RUNNER_DEBUG --- .github/workflows/test.yml | 2 +- README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 78ed932..0ea7686 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -402,7 +402,7 @@ jobs: # test that setup-pixi does debug logging - uses: ./ env: - RUNNER_DEBUG: true + ACTIONS_RUNNER_DEBUG: true - run: pixi run python --version | grep -q 3.11 test-cache1: diff --git a/README.md b/README.md index 7e72cb4..da1e7f4 100644 --- a/README.md +++ b/README.md @@ -164,12 +164,12 @@ There are two types of debug logging that you can enable. #### Debug logging of the action The first one is the debug logging of the action itself. -This can be enabled by running the action with the `RUNNER_DEBUG` environment variable set to `true`. +This can be enabled by running the action with the `ACTIONS_RUNNER_DEBUG` environment variable set to `true`. ```yml - uses: prefix-dev/setup-pixi@v0.4.1 env: - RUNNER_DEBUG: true + ACTIONS_RUNNER_DEBUG: true ``` Alternatively, you can enable debug logging for the action by re-running the action in debug mode: From c3e865a19444cfc22b2464d3cb7d5e116b995ef8 Mon Sep 17 00:00:00 2001 From: Pavel Zwerschke Date: Thu, 16 Nov 2023 01:21:32 +0100 Subject: [PATCH 3/3] ? --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0ea7686..1c40af1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -402,7 +402,7 @@ jobs: # test that setup-pixi does debug logging - uses: ./ env: - ACTIONS_RUNNER_DEBUG: true + ACTIONS_STEP_DEBUG: true - run: pixi run python --version | grep -q 3.11 test-cache1: