diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2020-11-18 11:56:16 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-18 11:56:16 -0500 |
| commit | 5cf3865fd314ff630376de352dbf8067ceaaa10b (patch) | |
| tree | 806d32c61a315f195cdbf75778f399850064ffa7 | |
| parent | 544687c3982696d924d49c4c9ea094b7a2dc8fe0 (diff) | |
| parent | de48cfdb81f285a46d0484e780019b7ee75e95ce (diff) | |
| download | python-setuptools-git-5cf3865fd314ff630376de352dbf8067ceaaa10b.tar.gz | |
Merge pull request #2457 from webknjaz/testing/gha-broken-setup-python
Upgrade GHA actions using deprecated env mechanism
| -rw-r--r-- | .github/workflows/python-tests.yml | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 2d5abe27..b6640181 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -50,6 +50,11 @@ jobs: if: >- endsWith(env.PYTHON_VERSION, '-beta') || endsWith(env.PYTHON_VERSION, '-dev') + # FIXME: replace `set-env` with a newer alternative + # Refs: + # * github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/ + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: true run: | from __future__ import print_function python_version = '${{ env.PYTHON_VERSION }}'.replace('-beta', '') @@ -59,10 +64,16 @@ jobs: - name: Set up Python ${{ env.PYTHON_VERSION }} (deadsnakes) uses: deadsnakes/action@v1.0.0 if: fromJSON(env.USE_DEADSNAKES) && true || false + # FIXME: drop once deadsnakes/action gets fixed + # Refs: + # * github.com/deadsnakes/issues/issues/135 + # * github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/ + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: true with: python-version: ${{ env.PYTHON_VERSION }} - name: Set up Python ${{ env.PYTHON_VERSION }} - uses: actions/setup-python@v2.1.1 + uses: actions/setup-python@v2 if: >- !fromJSON(env.USE_DEADSNAKES) && true || false with: @@ -77,7 +88,7 @@ jobs: run: >- python -m sysconfig - name: Pip cache - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('setup.cfg') }} @@ -99,6 +110,11 @@ jobs: python -m pip freeze --all - name: Adjust TOXENV for PyPy if: startsWith(env.PYTHON_VERSION, 'pypy') + # FIXME: replace `set-env` with a newer alternative + # Refs: + # * github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/ + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: true run: >- echo "::set-env name=TOXENV::${{ env.PYTHON_VERSION }}" - name: Log env vars |
