1
0
Fork 0
mirror of https://github.com/actions/setup-python.git synced 2024-11-25 01:38:56 +00:00
Commit graph

409 commits

Author SHA1 Message Date
fedor
c4679e72ad Respect username on macOS self-hosted runners
Right now it's hardcoded to "runner"
2023-07-25 17:33:30 -04:00
Dimitri Papadopoulos Orfanos
61a6322f88
Fix typos found by codespell (#650) 2023-07-13 15:35:02 +02:00
dependabot[bot]
ea5b57fccc
Bump semver from 7.3.8 to 7.5.2 (#692) 2023-07-13 15:25:58 +02:00
dependabot[bot]
014d32a830
Bump tough-cookie and @azure/ms-rest-js (#697) 2023-07-13 15:02:04 +02:00
Dmitry Shibanov
c16c4b8d18
Fix pipenv jobs (#699) 2023-07-13 14:11:40 +02:00
Dario Curreri
0d5da6a89a
Read python version from pyproject.toml (fix #542) (#669) 2023-06-28 22:02:44 +02:00
Dmitry Shibanov
3f824b7ca6
remove python 2.7 from the tests (#687) 2023-06-19 13:20:44 +02:00
Dmitry Shibanov
bd6b4b6205
Add warning for python 2.7 (#673) 2023-05-24 14:37:35 +02:00
Marko Zivic
0cbcb9a3d7
Merge pull request #668 from akv-platform/disallow-implicit-dependencies
Remove implicit dependency
2023-05-23 12:48:06 +02:00
Nikolai Laevskii
669664dac1 Merge branch 'tool-config-auto-update' into disallow-implicit-dependencies 2023-05-23 10:33:18 +02:00
github-actions[bot]
9cbf792a3c Update configuration files 2023-05-23 08:23:56 +00:00
Nikolai Laevskii
e732e40717 Update licenses 2023-05-22 12:13:00 +02:00
Nikolai Laevskii
a0d867bfa9 Change http-client dependency to one matching previous version 2023-05-22 11:53:31 +02:00
Nikolai Laevskii
d99bed8b21 Update license 2023-05-22 11:03:05 +02:00
Nikolai Laevskii
f71253fee3 Change to @action/http-client version to the one that was used in the most recent build 2023-05-22 11:02:56 +02:00
Nikolai Laevskii
b51c97f6e3 Add eslint rule for disallowing implicit dependencies 2023-05-22 10:41:59 +02:00
Siyuan Zhang
db9987b4c1
Fix a incorrect link advanced-usage.md (#657) 2023-04-25 11:31:57 +02:00
Matthieu Darbois
6db7460265
fix allow-prereleases sample configuration (#615) 2023-04-20 14:46:49 +02:00
Dmitry Shibanov
57ded4d7d5
update @azure/storage-blob (#655) 2023-04-20 14:13:16 +02:00
Dmitry Shibanov
df6abcc733
update xml2js (#652) 2023-04-19 13:40:45 +02:00
Dmitry Shibanov
7a4f344e33
Add warning for empty cache paths (#642) 2023-04-06 12:02:34 +02:00
Dmitry Shibanov
d1244c8404
Remove ubuntu-18.04 from e2e (#641) 2023-04-04 16:18:24 +02:00
Ivan
3091b37310
Fix glob bug in package.json scripts section (#637) 2023-04-03 12:46:57 +02:00
github-actions[bot]
dfa76f8d0d
Update configuration files (#622)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-03-15 00:32:39 +01:00
Dmitry Shibanov
03eb867e3d
Add error handling for saving and restoring cache (#618) 2023-03-10 12:15:18 +01:00
Marko Zivic
b41aaf9f0c
Merge pull request #621 from akv-platform/reusable-workflow
Turn on automatic update of ESLint and Prettier configuration files
2023-03-10 10:55:42 +01:00
IvanZosimov
0ffa49cfca Add update-config-files.yml 2023-03-09 11:47:39 +01:00
Ivan
ec365b4eba
Add and configure ESLint and update configuration for Prettier (#617)
* Add ESLint, update Prettier

* Update docs

* Update tests

* Update licenses

* Fix review points
2023-03-09 12:44:56 +02:00
Evgenii Korolevskii
7b9ef6fc5a
Add another pip default dependency file for cache hash (#604) 2023-02-20 13:36:57 +01:00
Kurt McKee
869e769ec8
Trim trailing newlines from resolvedPyPyVersion (#610)
Fixes #609
2023-02-20 11:28:16 +01:00
fevrin
3faddefb4c
Fix GHE documentation link (#602)
Co-authored-by: Fevrin <fevrin@users.noreply.github.com>
2023-02-09 09:31:03 +01:00
Ivan
181184007f
Update workflow badges (#594) 2023-01-31 08:46:32 +02:00
Matthieu Darbois
2652534ead
feature: fallback to pre-release when no stable version is found (#414)
This allows to specify version like `3.11` or `pypy3.10` in workflows before those versions are released.
This lessen the burden for users of `setup-python` by not having to modify their workflow twice: once when a pre-release is available (e.g. `3.11-dev`) and once when the first stable release is published (e.g. `3.11`)
2023-01-27 16:19:31 -05:00
João Carlos Ferra de Almeida
a6eba85bba
Fix small action version typo in docs (#590) 2023-01-18 14:43:44 +01:00
Christian Clauss
34b4b622e3
Encourage the use of pre-release Python 3.12, not 3.11 (#586) 2023-01-16 10:27:26 +01:00
MaksimZhukov
f60fe39c45
Update release-new-action-version.yml (#584) 2023-01-12 13:52:32 +01:00
Bastien Gérard
d27e3f3d7c
Fix outdated ref to actions/setup-python@v3 in doc (#581) 2023-01-09 09:55:39 +01:00
dependabot[bot]
dec86ecf4e
Bump json5 from 2.2.0 to 2.2.3 (#579)
Bumps [json5](https://github.com/json5/json5) from 2.2.0 to 2.2.3.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v2.2.0...v2.2.3)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-04 12:41:23 -05:00
Evgenii Korolevskii
4dcd67678f
Update CODEOWNERS (#576) 2023-01-04 17:01:11 +01:00
Oran Avraham
8b89ef08a0
Use correct Poetry config when collecting Poetry projects (#447)
* Use correct Poetry config when collecting Poetry projects

When collecting Poetry projects for caching, a '**/poetry.lock' glob is
used.  However, in order to process the Poetry configuration, the
"poetry" command is run from the repo's root directory; this causes
Poetry to return an invalid configuration when there is a Poetry project
inside an inner directory.

Instead of running a single Poetry command, glob for the same pattern,
and run a Poetry command for every discovered project.

* Fix typo: saveSatetSpy -> saveStateSpy

* poetry: Support same virtualenv appearing in multiple projects

* Add nested Poetry projects test

* poetry: Set up environment for each project individually

* tests/cache-restore: Do not look for dependency files outside `data`

When the default dependency path is used for cache distributors, they
are looking for the dependency file in the project's root (including the
source code), which leads to tests taking a significant amount of time,
especially on Windows runners.  We thus hit sporadic test failures.

Change the test cases such that dependency files are always searched for
inside of `__tests__/data`, ignoring the rest of the project.

* poetry: Simplify `virtualenvs.in-project` boolean check

* README: Explain that poetry might create multiple caches

* poetry: Run `poetry env use` only after cache is loaded

The virtualenv cache might contain invalid entries, such as virtualenvs
built in previous, buggy versions of this action.  The `poetry env use`
command will recreate virtualenvs in case they are invalid, but it has
to be run only *after* the cache is loaded.

Refactor `CacheDistributor` a bit such that the validation (and possible
recreation) of virtualenvs happens only after the cache is loaded.

* poetry: Bump cache primary key
2023-01-03 11:13:00 -05:00
Dmitry Shibanov
5ccb29d877
Install multiple python versions (#567) 2022-12-22 13:02:09 +01:00
Ivan
c3e033939c
Update action to use reusable workflows (#569)
* Update workflows to use reusable-workflows

* Update licensed.yml

* Update workflows

* Add links to reusable workflows

* Update action to use reusable-workflows repo

* Fix review points
2022-12-22 11:17:13 +02:00
Jongwoo Han
206e984b94
refactor: Use early return pattern to avoid nested conditions (#566)
* refactor: Use early return pattern

Signed-off-by: jongwooo <jongwooo.han@gmail.com>

* fix: Replace throw with warn

Signed-off-by: jongwooo <jongwooo.han@gmail.com>

Signed-off-by: jongwooo <jongwooo.han@gmail.com>
2022-12-19 14:00:46 +01:00
MaksimZhukov
2c3dd9e7e2
Add OS info to the error message (#559) 2022-12-07 18:12:42 +01:00
Dmitry Shibanov
76bbdfadd7
Update minimatch (#558) 2022-12-07 18:08:22 +01:00
Simon Willison
1aafadcfb9
Caching projects that use setup.py (#549) 2022-11-29 12:46:57 -05:00
James M. Greene
b80efd6bc5
Update to latest actions/publish-action (#546)
To avoid Actions core deprecation messages.

https://github.com/actions/publish-action/releases/tag/v0.2.1
2022-11-24 12:14:51 +01:00
Watal M. Iwasaki
5cddb27885
Recommend setting python-version (#545)
* Recommend setting python-version

* Recommend both options to set Python version

Co-authored-by: MaksimZhukov <46996400+MaksimZhukov@users.noreply.github.com>

Co-authored-by: MaksimZhukov <46996400+MaksimZhukov@users.noreply.github.com>
2022-11-21 13:47:16 +01:00
Matthieu Darbois
47c4a7af1d
fix(ci): run .github/workflows/workflow.yml on ubuntu-20.04 (#535) 2022-11-07 13:10:21 +01:00
Thomas Kastl
af57b64994
Extend docu regarding rate limit issues. (#510) 2022-10-31 09:50:28 +01:00