Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add debug test #39

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
ACTIONS_STEP_DEBUG: true
- run: pixi run python --version | grep -q 3.11

test-cache1:
name: Test cache 1/2
timeout-minutes: 10
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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:
Expand Down