diff --git a/.github/workflows/cygwin-test.yml b/.github/workflows/cygwin-test.yml index 533022b91..962791ae7 100644 --- a/.github/workflows/cygwin-test.yml +++ b/.github/workflows/cygwin-test.yml @@ -14,7 +14,7 @@ jobs: TEMP: "/tmp" defaults: run: - shell: bash.exe -eo pipefail -o igncr "{0}" + shell: bash.exe --noprofile --norc -exo pipefail -o igncr "{0}" steps: - name: Force LF line endings @@ -31,23 +31,19 @@ jobs: - name: Show python and git versions run: | - set -x /usr/bin/python --version /usr/bin/git version - name: Tell git to trust this repo run: | - /usr/bin/git config --global --add safe.directory "$(pwd)" + /usr/bin/git config --global --add safe.directory "$(pwd)" - name: Prepare this repo for tests run: | - set -x TRAVIS=yes ./init-tests-after-clone.sh - name: Further prepare git configuration for tests run: | - set -x - /usr/bin/git config --global user.email "travis@ci.com" /usr/bin/git config --global user.name "Travis Runner" # If we rewrite the user's config by accident, we will mess it up @@ -56,14 +52,13 @@ jobs: - name: Update PyPA packages run: | - set -x /usr/bin/python -m pip install --upgrade pip setuptools wheel - name: Install project and test dependencies run: | - set -x /usr/bin/python -m pip install ".[test]" - name: Test with pytest run: | + set +x /usr/bin/python -m pytest diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index cce39d17a..a5467ef94 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -20,6 +20,9 @@ jobs: - experimental: false - python-version: "3.12" experimental: true + defaults: + run: + shell: /bin/bash --noprofile --norc -exo pipefail {0} steps: - uses: actions/checkout@v4 @@ -35,19 +38,15 @@ jobs: - name: Show python and git versions run: | - set -x python --version git version - name: Prepare this repo for tests run: | - set -x TRAVIS=yes ./init-tests-after-clone.sh - name: Prepare git configuration for tests run: | - set -x - git config --global user.email "travis@ci.com" git config --global user.name "Travis Runner" # If we rewrite the user's config by accident, we will mess it up @@ -56,8 +55,6 @@ jobs: - name: Update PyPA packages run: | - set -x - python -m pip install --upgrade pip if pip freeze --all | grep --quiet '^setuptools=='; then # Python prior to 3.12 ships setuptools. Upgrade it if present. @@ -67,12 +64,10 @@ jobs: - name: Install project and test dependencies run: | - set -x pip install ".[test]" - name: Check types with mypy run: | - set -x mypy -p git # With new versions of mypy new issues might arise. This is a problem if there is nobody able to fix them, # so we have to ignore errors until that changes. @@ -80,12 +75,10 @@ jobs: - name: Test with pytest run: | - set -x pytest continue-on-error: false - name: Documentation run: | - set -x pip install -r doc/requirements.txt make -C doc html