Commit graph

422 commits

Author SHA1 Message Date
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
Marko Zivic
a93d5412cb
Merge pull request #466 from techman83/fix/tool_path
Fix Tool Path handling for self-hosted runners
2022-07-26 15:20:04 +02:00
IvanZosimov
72394d1a3e Fix typo 2022-07-26 15:04:50 +02:00
IvanZosimov
fe396d3941 Revert changes 2022-07-26 15:03:33 +02:00
IvanZosimov
853c012a3c Change advanced-usage.md 2022-07-26 14:59:35 +02:00
IvanZosimov
fd6f59db22 Change contents to make them more readable 2022-07-26 14:56:14 +02:00
IvanZosimov
c6e66a7681 Fix typo 2022-07-26 14:51:59 +02:00
IvanZosimov
81cda82fb0 Fix review points 2022-07-26 14:47:59 +02:00
Leon Wright
7e39d25e3f
refactor: Debug message for Python installation path 2022-07-26 20:40:49 +08:00
Leon Wright
d5d67707d2
docs: Mac Tool Path
Ensure that the path requirements and reasoning is clear, to reduce
confusion when using self-hosted, or attempting to set an
'AGENT_TOOLSDIRECTORY' environment variable.
2022-07-26 19:40:29 +08:00
Leon Wright
bc8ee42330
fix: Mac Toolpath
Shared libraries for the Mac python builds are not configured with the
relocatable flag, thus must always be configured with the hosted path.

Relates #459
2022-07-26 19:40:29 +08:00
Leon Wright
467a981225
feat: Add 'IS_MAC' util 2022-07-26 19:38:18 +08:00
Leon Wright
9f1915a970
fix: Self-Hosted Tool Cache
This fixes the tool cache path for self-hosted runners, along
with handling AGENT_TOOLSDIRECTORY for both hosted + self-hosted.

    Fixes actions#459
2022-07-26 19:37:39 +08:00