Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: actions/setup-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.2.2
Choose a base ref
...
head repository: actions/setup-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.3.0
Choose a head ref
  • 11 commits
  • 84 files changed
  • 6 contributors

Commits on Jun 24, 2021

  1. Recommendations for Python on GHES (#219)

    * Recommendations for Python on GHES
    
    * Update README.md
    
    Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com>
    
    Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com>
    konradpabjan and brcrista authored Jun 24, 2021
    Copy the full SHA
    43c2dc4 View commit details

Commits on Aug 25, 2021

  1. Create check-dist.yml (#236)

    * Add check-dist.yml
    
    * Fix triggers in licensed.yml
    brcrista authored Aug 25, 2021
    Copy the full SHA
    2d803e7 View commit details

Commits on Sep 29, 2021

  1. Copy the full SHA
    70e2063 View commit details

Commits on Oct 13, 2021

  1. update dependencies

    dmitry-shibanov committed Oct 13, 2021
    Copy the full SHA
    4aa563b View commit details

Commits on Oct 14, 2021

  1. Merge pull request #252 from dmitry-shibanov/v-dmshib/update-dependen…

    …cies
    
    Update dependencies
    MaksimZhukov authored Oct 14, 2021
    Copy the full SHA
    d12543a View commit details

Commits on Oct 19, 2021

  1. 1
    Copy the full SHA
    002b1e4 View commit details

Commits on Oct 20, 2021

  1. Copy the full SHA
    feeaa3b View commit details

Commits on Nov 9, 2021

  1. Copy the full SHA
    ca5c590 View commit details

Commits on Nov 12, 2021

  1. Copy the full SHA
    52636cf View commit details

Commits on Nov 17, 2021

  1. Copy the full SHA
    280924f View commit details
  2. Copy the full SHA
    0066b88 View commit details
Showing with 134,342 additions and 11,425 deletions.
  1. +22 −28 .github/ISSUE_TEMPLATE/bug_report.md
  2. +1 −0 .github/ISSUE_TEMPLATE/config.yml
  3. +18 −0 .github/ISSUE_TEMPLATE/feature_request.md
  4. +9 −0 .github/pull_request_template.md
  5. +51 −0 .github/workflows/check-dist.yml
  6. +93 −0 .github/workflows/e2e-cache.yml
  7. +7 −3 .github/workflows/licensed.yml
  8. +27 −0 .github/workflows/release-new-action-version.yml
  9. +4 −5 .github/workflows/test-pypy.yml
  10. +4 −4 .github/workflows/test-python.yml
  11. +1 −0 .licensed.yml
  12. +20 −0 .licenses/npm/@actions/cache.dep.yml
  13. +10 −20 .licenses/npm/@actions/exec.dep.yml
  14. +20 −0 .licenses/npm/@actions/glob-0.1.2.dep.yml
  15. +20 −0 .licenses/npm/@actions/glob-0.2.0.dep.yml
  16. +32 −0 .licenses/npm/@actions/http-client-1.0.11.dep.yml
  17. 0 .licenses/npm/@actions/{http-client.dep.yml → http-client-1.0.8.dep.yml}
  18. +32 −0 .licenses/npm/@azure/abort-controller.dep.yml
  19. +32 −0 .licenses/npm/@azure/core-asynciterator-polyfill.dep.yml
  20. +33 −0 .licenses/npm/@azure/core-auth.dep.yml
  21. +33 −0 .licenses/npm/@azure/core-http.dep.yml
  22. +33 −0 .licenses/npm/@azure/core-lro.dep.yml
  23. +32 −0 .licenses/npm/@azure/core-paging.dep.yml
  24. +32 −0 .licenses/npm/@azure/core-tracing.dep.yml
  25. +32 −0 .licenses/npm/@azure/logger.dep.yml
  26. +33 −0 .licenses/npm/@azure/ms-rest-js.dep.yml
  27. +32 −0 .licenses/npm/@azure/storage-blob.dep.yml
  28. +229 −0 .licenses/npm/@opentelemetry/api.dep.yml
  29. +32 −0 .licenses/npm/@types/node-fetch.dep.yml
  30. +32 −0 .licenses/npm/@types/node.dep.yml
  31. +32 −0 .licenses/npm/@types/tunnel.dep.yml
  32. +32 −0 .licenses/npm/abort-controller.dep.yml
  33. +34 −0 .licenses/npm/asynckit.dep.yml
  34. +55 −0 .licenses/npm/balanced-match.dep.yml
  35. +55 −0 .licenses/npm/brace-expansion.dep.yml
  36. +32 −0 .licenses/npm/combined-stream.dep.yml
  37. +31 −0 .licenses/npm/concat-map.dep.yml
  38. +32 −0 .licenses/npm/delayed-stream.dep.yml
  39. +33 −0 .licenses/npm/event-target-shim.dep.yml
  40. +38 −0 .licenses/npm/events.dep.yml
  41. +33 −0 .licenses/npm/form-data-2.5.1.dep.yml
  42. +33 −0 .licenses/npm/form-data-3.0.1.dep.yml
  43. +33 −0 .licenses/npm/form-data-4.0.0.dep.yml
  44. +34 −0 .licenses/npm/ip-regex.dep.yml
  45. +33 −0 .licenses/npm/mime-db.dep.yml
  46. +47 −0 .licenses/npm/mime-types.dep.yml
  47. +26 −0 .licenses/npm/minimatch.dep.yml
  48. +56 −0 .licenses/npm/node-fetch.dep.yml
  49. +33 −0 .licenses/npm/process.dep.yml
  50. +43 −0 .licenses/npm/psl.dep.yml
  51. +34 −0 .licenses/npm/punycode.dep.yml
  52. +52 −0 .licenses/npm/sax.dep.yml
  53. +23 −0 .licenses/npm/tough-cookie-3.0.1.dep.yml
  54. +23 −0 .licenses/npm/tough-cookie-4.0.0.dep.yml
  55. +30 −0 .licenses/npm/tr46.dep.yml
  56. +31 −0 .licenses/npm/tslib-1.14.1.dep.yml
  57. +31 −0 .licenses/npm/tslib-2.3.1.dep.yml
  58. +33 −0 .licenses/npm/universalify.dep.yml
  59. 0 .licenses/npm/{uuid.dep.yml → uuid-3.4.0.dep.yml}
  60. +20 −0 .licenses/npm/uuid-8.3.2.dep.yml
  61. +23 −0 .licenses/npm/webidl-conversions.dep.yml
  62. +32 −0 .licenses/npm/whatwg-url.dep.yml
  63. +30 −0 .licenses/npm/xml2js.dep.yml
  64. +24 −0 .licenses/npm/xmlbuilder.dep.yml
  65. +79 −1 README.md
  66. +175 −0 __tests__/cache-restore.test.ts
  67. +178 −0 __tests__/cache-save.test.ts
  68. +276 −0 __tests__/data/Pipfile.lock
  69. +12 −0 __tests__/data/requirements-linux.txt
  70. +47 −0 __tests__/data/requirements.txt
  71. +8 −1 action.yml
  72. +58,329 −0 dist/cache-save/index.js
  73. +0 −7,631 dist/index.js
  74. +65,058 −0 dist/setup/index.js
  75. +7,809 −3,708 package-lock.json
  76. +13 −10 package.json
  77. +53 −0 src/cache-distributions/cache-distributor.ts
  78. +22 −0 src/cache-distributions/cache-factory.ts
  79. +49 −0 src/cache-distributions/pip-cache.ts
  80. +44 −0 src/cache-distributions/pipenv-cache.ts
  81. +67 −0 src/cache-save.ts
  82. +1 −8 src/install-python.ts
  83. +28 −6 src/setup-python.ts
  84. +7 −0 src/utils.ts
50 changes: 22 additions & 28 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,44 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
about: Create a bug report
title: ''
labels: bug
labels: bug, needs triage
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.
<!--- Please direct any generic questions related to actions to our support community forum at https://github.community/c/code-to-cloud/github-actions/41 --->
<!--- Before opening up a new bug report, please make sure to check for similar existing issues -->

**Which version of the action are you using?**
**Description:**
A clear and concise description of what the bug is.

- [ ] `v1`
- [ ] `v2`
- [ ] Some other tag (such as `v2.0.1` or `master`)
**Action version:**
Specify the action version

**Environment**
- [ ] self-hosted
- [ ] Linux
**Platform:**
- [ ] Ubuntu
- [ ] macOS
- [ ] Windows
- [ ] Mac

If applicable, please specify if you're using a container

**Python Versions**
Please list all of the effected versions of Python (`3.8.2`, etc.)
**Runner type:**
- [ ] Hosted
- [ ] Self-hosted

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Tools version:**
<!--- Please list all of the affected Python versions (`3.8.2`, etc.)-->

**Run/Repo Url**
If applicable, and if your repo/run is public, please include a URL so it is easier for us to investigate.
**Repro steps:**
A description with steps to reproduce the issue. If your have a public example or repo to share, please provide the link.

**Screenshots**
If applicable, add screenshots to help explain your problem.
**Expected behavior:**
A description of what you expected to happen.

**Additional context**
Add any other context about the problem here.
**Actual behavior:**
A description of what is actually happening.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: feature request, needs triage
assignees: ''
---
<!--- Please direct any generic questions related to actions to our support community forum at https://github.community/c/code-to-cloud/github-actions/41 --->
<!--- Before opening up a new feature request, please make sure to check for similar existing issues and pull requests -->

**Description:**
Describe your proposal.

**Justification:**
Justification or a use case for your proposal.

**Are you willing to submit a PR?**
<!--- We accept contributions! -->
9 changes: 9 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
**Description:**
Describe your changes.

**Related issue:**
Add link to the related issue.

**Check list:**
- [ ] Mark if documentation changes are required.
- [ ] Mark if tests were added or updated to cover the changes.
51 changes: 51 additions & 0 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# `dist/index.js` is a special file in Actions.
# When you reference an action with `uses:` in a workflow,
# `index.js` is the code that will run.
# For our project, we generate this file through a build process from other source files.
# We need to make sure the checked-in `index.js` actually matches what we expect it to be.
name: Check dist/

on:
push:
branches:
- main
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
workflow_dispatch:

jobs:
check-dist:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x

- name: Install dependencies
run: npm ci

- name: Rebuild the dist/ directory
run: npm run build

- name: Compare the expected and actual dist/ directories
run: |
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff
exit 1
fi
id: diff

# If index.js was different than expected, upload the expected version as an artifact
- uses: actions/upload-artifact@v2
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
with:
name: dist
path: dist/
93 changes: 93 additions & 0 deletions .github/workflows/e2e-cache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
name: e2e-cache

on:
pull_request:
paths-ignore:
- '**.md'
push:
branches:
- main
- releases/*
paths-ignore:
- '**.md'

permissions:
contents: read
jobs:
python-pip-dependencies-caching:
name: Test pip (Python ${{ matrix.python-version}}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.7', '3.8', '3.9', 'pypy-3.7-v7.3.5', 'pypy-3.7-v7.x']
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: ./
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: pip install numpy pandas requests

python-pipenv-dependencies-caching:
name: Test pipenv (Python ${{ matrix.python-version}}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.7', '3.8', '3.9', 'pypy-3.7-v7.3.5', 'pypy-3.7-v7.x']
steps:
- uses: actions/checkout@v2
- name: Install pipenv
run: pipx install pipenv
- name: Setup Python
uses: ./
with:
python-version: ${{ matrix.python-version }}
cache: 'pipenv'
- name: Install dependencies
run: pipenv install flake8

python-pip-dependencies-caching-path:
name: Test pip (Python ${{ matrix.python-version}}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.7', '3.8', '3.9', 'pypy-3.7-v7.3.5', 'pypy-3.7-v7.x']
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: ./
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: __tests__/data/requirements.txt
- name: Install dependencies
run: pip install numpy pandas requests

python-pipenv-dependencies-caching-path:
name: Test pipenv (Python ${{ matrix.python-version}}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.7', '3.8', '3.9', 'pypy-3.7-v7.3.5', 'pypy-3.7-v7.x']
steps:
- uses: actions/checkout@v2
- name: Install pipenv
run: pipx install pipenv
- name: Setup Python
uses: ./
with:
python-version: ${{ matrix.python-version }}
cache: 'pipenv'
cache-dependency-path: '**/requirements-linux.txt'
- name: Install dependencies
run: pipenv install flake8
10 changes: 7 additions & 3 deletions .github/workflows/licensed.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
name: Licensed

on:
push: {branches: main}
pull_request: {branches: main}
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
@@ -17,4 +21,4 @@ jobs:
curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/2.12.2/licensed-2.12.2-linux-x64.tar.gz
sudo tar -xzf licensed.tar.gz
sudo mv licensed /usr/local/bin/licensed
- run: licensed status
- run: licensed status
27 changes: 27 additions & 0 deletions .github/workflows/release-new-action-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release new action version
on:
release:
types: [released]
workflow_dispatch:
inputs:
TAG_NAME:
description: 'Tag name that the major tag will point to'
required: true

env:
TAG_NAME: ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }}
permissions:
contents: write

jobs:
update_tag:
name: Update the major tag to include the ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} changes
environment:
name: releaseNewActionVersion
runs-on: ubuntu-latest
steps:
- name: Update the ${{ env.TAG_NAME }} tag
uses: actions/publish-action@v0.1.0
with:
source-tag: ${{ env.TAG_NAME }}
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
9 changes: 4 additions & 5 deletions .github/workflows/test-pypy.yml
Original file line number Diff line number Diff line change
@@ -21,12 +21,11 @@ jobs:
os: [macos-latest, windows-latest, ubuntu-18.04, ubuntu-latest]
pypy:
- 'pypy-2.7'
- 'pypy-3.6'
- 'pypy-3.7'
- 'pypy-2.7-v7.3.2'
- 'pypy-3.6-v7.3.2'
- 'pypy-3.7-v7.3.2'
- 'pypy-3.6-v7.3.x'
- 'pypy-2.7-v7.3.4'
- 'pypy-3.7-v7.3.5'
- 'pypy-3.7-v7.3.4'
- 'pypy-3.7-v7.3.x'
- 'pypy-3.7-v7.x'
- 'pypy-2.7-v7.3.4rc1'
- 'pypy-3.7-nightly'
8 changes: 4 additions & 4 deletions .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-16.04, ubuntu-18.04, ubuntu-20.04]
os: [macos-latest, windows-latest, ubuntu-18.04, ubuntu-20.04]
steps:
- name: Checkout
uses: actions/checkout@v2
@@ -38,7 +38,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-16.04, ubuntu-18.04, ubuntu-20.04]
os: [macos-latest, windows-latest, ubuntu-18.04, ubuntu-20.04]
python: [3.5.4, 3.6.7, 3.7.5, 3.8.1]
steps:
- name: Checkout
@@ -68,7 +68,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-16.04, ubuntu-18.04, ubuntu-20.04]
os: [macos-latest, windows-latest, ubuntu-18.04, ubuntu-20.04]
steps:
- name: Checkout
uses: actions/checkout@v2
@@ -97,7 +97,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-16.04, ubuntu-18.04, ubuntu-20.04]
os: [macos-10.15, windows-latest, ubuntu-18.04, ubuntu-20.04]
steps:
- name: Checkout
uses: actions/checkout@v2
1 change: 1 addition & 0 deletions .licensed.yml
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@ allowed:
- mit
- cc0-1.0
- unlicense
- 0bsd

reviewed:
npm:
20 changes: 20 additions & 0 deletions .licenses/npm/@actions/cache.dep.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading