Commit Graph

384 Commits

Author SHA1 Message Date
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
Sergey Dolin 4818a5a153
Handle download HTTP error (#511) 2022-10-24 11:10:18 +02:00
Vladimir Safonkin 8bcd2560e2
Add architecture input check for PyPy for Windows platform (#520)
* Revert cache index.js

* build cache index file

* Refactor

* Debug

* Debug

* Debug

* Debug

* Debug

* Debug

* Debug

* Debug

* Format code

* Rebuild dist

* Minor refactor

* Format code

* Minor fixes

* Check platform firstly
2022-10-18 11:01:15 +02:00
Marko Zivic 13ae5bb136
Merge pull request #517 from rentziass/rentziass/update-actions-core
Update @actions/core to 1.10.0
2022-10-07 13:51:04 +02:00
Francesco Renzi 0c4d7b878c Update @actions/core to 1.10.0 2022-10-06 12:16:00 +01:00
wzy 13a464fa11
Fix typo (#503) 2022-09-21 00:45:00 +02:00
anthony sottile b4fe97ecda
upgrade @actions/cache so it respects SEGMENT_DOWNLOAD_TIMEOUT_MINS (#499) 2022-09-13 11:04:29 -04:00
Matthieu Darbois 434aeabbb4
Bump @actions/core from 1.7.0 to 1.9.1 (#495)
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.7.0 to 1.9.1.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

---
updated-dependencies:
- dependency-name: "@actions/core"
  dependency-type: direct:production
...

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>
2022-09-07 13:07:01 -04:00
ChristopherHX 98c991d13f
Only use github.token on github.com (#443)
* Only use github.token on github.com

This expression evaluates to `''` if called from GHES hosted elsewhere
You can still provide your token on both github.com and GHES

* Enshure blank result of expression and not false

* Revert "Revert "Pass the `token` input through on GHES (#427)" (#437)"

This reverts commit cf86e08a31.

* fix typo

* Add back the doc on the tool cache for self-hosted

Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com>
2022-08-30 15:02:20 -04:00
Marko Zivic 397a35f988
Merge pull request #492 from al-cheb/al-cheb/update-runner-link
Update runner links
2022-08-30 10:16:43 +02:00
Aleksandr Chebotov 48a0f006ff Update runner links 2022-08-29 16:20:07 +02:00
Marko Zivic 978fd06d1f
Merge pull request #491 from lkfortuna/patch-2
Update README.md
2022-08-29 11:06:58 +02:00
Larissa Fortuna 050e616f66
Update README.md
Updating outdated reference to virtual environments
2022-08-26 08:26:51 -07:00
Marko Zivic f6795b163d
Merge pull request #479 from e-korolevskii/main
Update contributors guide
2022-08-10 16:45:43 +02:00
Evgenii Korolevskii 2e6ca74422
Merge branch 'actions:main' into main 2022-08-10 16:40:52 +02:00
Marko Zivic aa5ddbf8fe
Merge pull request #477 from Kludex/patch-1
Add `rc` mention to the `-dev` tag
2022-08-10 09:40:38 +02:00
Evgenii Korolevskii c0abeaa470
Update docs/contributors.md
Co-authored-by: Ivan <98037481+IvanZosimov@users.noreply.github.com>
2022-08-09 23:56:17 +02:00
Marcelo Trylesinski 197204a31c
Update advanced-usage.md 2022-08-09 11:52:47 +02:00
Evgenii Korolevskii c96b4b55f3 rephased documents 2022-08-03 19:24:32 +02:00
Marko Zivic b55428b188
Merge pull request #472 from IvanZosimov/ReadmeUpdate
Updated README.md in setup-python
2022-08-02 13:10:35 +02:00
Ivan e084fcae44
Merge branch 'main' into ReadmeUpdate 2022-08-01 16:46:54 +02:00
IvanZosimov 789730b666 Fix broken links in the text body 2022-08-01 16:44:50 +02:00
IvanZosimov c4e98b741b Fix broken links 2022-08-01 16:33:59 +02:00
IvanZosimov cfcafa57ec Fix review points 2022-08-01 16:23:57 +02:00
Evgenii Korolevskii 9aa1c6cb27 updated contributors guide 2022-08-01 01:44:15 +02:00
IvanZosimov c318b92fd6 Fix review points 2022-07-28 09:38:24 +02:00