Skip to content

Commit

Permalink
build: show action environment variables for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Jan 25, 2024
1 parent f8be865 commit b7c41a2
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 4 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ jobs:
#cache: pip
#cache-dependency-path: 'requirements/*.pip'

- name: "Show environment"
run: |
set -xe
python -VV
python -m site
env
- name: "Install dependencies"
run: |
echo matrix id: $MATRIX_ID
Expand Down Expand Up @@ -132,11 +139,16 @@ jobs:
#cache: pip
#cache-dependency-path: 'requirements/*.pip'

- name: "Install dependencies"
- name: "Show environment"
run: |
set -xe
python -VV
python -m site
env
- name: "Install dependencies"
run: |
set -xe
python -m pip install -e .
python igor.py zip_mods
Expand Down Expand Up @@ -171,10 +183,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: "Show environment"
run: |
set -xe
env
- name: "Compute info for later steps"
id: info
run: |
set -xe
env
export SHA10=$(echo ${{ github.sha }} | cut -c 1-10)
export SLUG=$(date +'%Y%m%d')_$SHA10
export REPORT_DIR=reports/$SLUG/htmlcov
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/python-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ jobs:
python -m site
python -m coverage debug sys
python -m coverage debug pybehave
env
- name: "Install dependencies"
run: |
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,16 @@ jobs:
cache: pip
cache-dependency-path: 'requirements/*.pip'

- name: "Install dependencies"
- name: "Show environment"
run: |
set -xe
python -VV
python -m site
env
- name: "Install dependencies"
run: |
set -xe
python -m pip install -r requirements/tox.pip
- name: "Tox doc"
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/testsuite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,19 @@ jobs:
#cache: pip
#cache-dependency-path: 'requirements/*.pip'

- name: "Install dependencies"
- name: "Show environment"
run: |
set -xe
python -VV
python -m site
python -m pip install -r requirements/tox.pip
# For extreme debugging:
# python -c "import urllib.request as r; exec(r.urlopen('https://bit.ly/pydoctor').read())"
env
- name: "Install dependencies"
run: |
set -xe
python -m pip install -r requirements/tox.pip
- name: "Run tox for ${{ matrix.python-version }}"
run: |
Expand Down

0 comments on commit b7c41a2

Please sign in to comment.