From b7c41a2b7482d61dac596643e01e301ac98d1400 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 25 Jan 2024 08:07:32 -0500 Subject: [PATCH] build: show action environment variables for debugging --- .github/workflows/coverage.yml | 20 +++++++++++++++++++- .github/workflows/python-nightly.yml | 1 + .github/workflows/quality.yml | 7 ++++++- .github/workflows/testsuite.yml | 9 +++++++-- 4 files changed, 33 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 88aaadec5..ddb09d150 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -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 @@ -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 @@ -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 diff --git a/.github/workflows/python-nightly.yml b/.github/workflows/python-nightly.yml index c4bffd278..fd4bdad53 100644 --- a/.github/workflows/python-nightly.yml +++ b/.github/workflows/python-nightly.yml @@ -79,6 +79,7 @@ jobs: python -m site python -m coverage debug sys python -m coverage debug pybehave + env - name: "Install dependencies" run: | diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml index 9922b233b..d1c1f311a 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality.yml @@ -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" diff --git a/.github/workflows/testsuite.yml b/.github/workflows/testsuite.yml index 9e1c3c1fa..e6742753e 100644 --- a/.github/workflows/testsuite.yml +++ b/.github/workflows/testsuite.yml @@ -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: |