Commit Graph

77 Commits

Author SHA1 Message Date
Kevin Stillhammer
794ea9455c Add support for pep440 version identifiers (#353)
Fixes: #264
2025-03-30 18:00:56 +02:00
Kevin Stillhammer
22695119d7 Add uv-path and uvx-path output (#341)
Some checks failed
CodeQL / Analyze (TypeScript) (push) Failing after 26s
Release Drafter / ✏️ Draft release (push) Failing after 9s
test / lint (push) Successful in 1m32s
test / test-default-version (ubuntu-latest) (push) Successful in 27s
test / test-specific-version (0.3) (push) Successful in 41s
test / test-specific-version (0.3.0) (push) Successful in 33s
test / test-specific-version (0.3.2) (push) Successful in 32s
test / test-specific-version (0.3.x) (push) Successful in 54s
test / test-specific-version (>=0.3.0) (push) Successful in 38s
test / test-semver-range (push) Successful in 38s
test / test-pyproject-file-version (push) Successful in 23s
test / test-malformed-pyproject-file-fallback (push) Successful in 33s
test / test-uv-file-version (push) Successful in 20s
test / test-checksum (map[checksum:4d9279ad5ca596b1e2d703901d508430eb07564dc4d8837de9e2fca9c90f8ecd os:ubuntu-latest]) (push) Successful in 31s
test / test-with-explicit-token (push) Successful in 38s
test / test-uvx (push) Successful in 35s
test / test-tool-install (ubuntu-latest) (push) Successful in 42s
test / test-python-version (macos-latest) (push) Successful in 1m30s
test / test-python-version (ubuntu-latest) (push) Successful in 56s
test / test-python-version (windows-latest) (push) Successful in 1m0s
test / test-musl (push) Failing after 14s
test / test-setup-cache (auto, ubuntu-latest) (push) Successful in 33s
test / test-setup-cache (false, ubuntu-latest) (push) Successful in 33s
test / test-setup-cache (true, ubuntu-latest) (push) Successful in 9m41s
test / test-setup-cache-requirements-txt (push) Successful in 9m32s
test / test-setup-cache-dependency-glob (push) Successful in 9m33s
test / test-no-python-version (push) Successful in 9m40s
test / test-restore-cache-dependency-glob (push) Successful in 9m27s
test / test-default-version (macos-14) (push) Has been cancelled
test / test-default-version (macos-latest) (push) Has been cancelled
test / test-default-version (windows-latest) (push) Has been cancelled
test / test-checksum (map[checksum:a70cbfbf3bb5c08b2f84963b4f12c94e08fbb2468ba418a3bfe1066fbe9e7218 os:macos-latest]) (push) Has been cancelled
test / test-tool-install (macos-14) (push) Has been cancelled
test / test-tool-install (macos-latest) (push) Has been cancelled
test / test-tool-install (windows-latest) (push) Has been cancelled
test / test-tilde-expansion-tool-dirs (push) Has been cancelled
test / test-setup-cache (auto, selfhosted-ubuntu-arm64) (push) Has been cancelled
test / test-setup-cache (auto, windows-latest) (push) Has been cancelled
test / test-setup-cache (false, selfhosted-ubuntu-arm64) (push) Has been cancelled
test / test-setup-cache (false, windows-latest) (push) Has been cancelled
test / test-setup-cache (true, selfhosted-ubuntu-arm64) (push) Has been cancelled
test / test-setup-cache (true, windows-latest) (push) Has been cancelled
test / test-setup-cache-local (push) Has been cancelled
test / test-tilde-expansion-cache-local-path (push) Has been cancelled
test / test-tilde-expansion-cache-dependency-glob (push) Has been cancelled
test / test-restore-cache (auto, selfhosted-ubuntu-arm64) (push) Has been cancelled
test / test-restore-cache (auto, ubuntu-latest) (push) Has been cancelled
test / test-restore-cache (auto, windows-latest) (push) Has been cancelled
test / test-restore-cache (false, selfhosted-ubuntu-arm64) (push) Has been cancelled
test / test-restore-cache (false, ubuntu-latest) (push) Has been cancelled
test / test-restore-cache (false, windows-latest) (push) Has been cancelled
test / test-restore-cache (true, selfhosted-ubuntu-arm64) (push) Has been cancelled
test / test-restore-cache (true, ubuntu-latest) (push) Has been cancelled
test / test-restore-cache (true, windows-latest) (push) Has been cancelled
test / test-restore-cache-requirements-txt (push) Has been cancelled
test / test-restore-cache-local (push) Has been cancelled
test / cleanup-tilde-expansion-tests (push) Has been cancelled
test / all-tests-passed (push) Has been cancelled
Update known checksums / build (push) Failing after 11s
Closes: #338
2025-03-21 13:44:23 +01:00
Kevin Stillhammer
1fb7cdfc29 Merge workflows and add all-tests-passed (#331)
Some checks failed
test / lint (push) Successful in 1m40s
Release Drafter / ✏️ Draft release (push) Failing after 12s
CodeQL / Analyze (TypeScript) (push) Failing after 34s
test / test-default-version (ubuntu-latest) (push) Successful in 20s
test / test-specific-version (0.3) (push) Successful in 30s
test / test-specific-version (0.3.2) (push) Successful in 14s
test / test-specific-version (0.3.0) (push) Successful in 40s
test / test-specific-version (>=0.3.0) (push) Successful in 24s
test / test-specific-version (0.3.x) (push) Successful in 26s
test / test-pyproject-file-version (push) Successful in 10s
test / test-semver-range (push) Successful in 18s
test / test-uv-file-version (push) Successful in 9s
test / test-malformed-pyproject-file-fallback (push) Successful in 19s
test / test-checksum (map[checksum:4d9279ad5ca596b1e2d703901d508430eb07564dc4d8837de9e2fca9c90f8ecd os:ubuntu-latest]) (push) Successful in 17s
test / test-with-explicit-token (push) Successful in 20s
test / test-tool-install (ubuntu-latest) (push) Successful in 20s
test / test-uvx (push) Successful in 28s
test / test-python-version (ubuntu-latest) (push) Successful in 41s
test / test-python-version (macos-latest) (push) Successful in 45s
test / test-musl (push) Failing after 7s
test / test-setup-cache (auto, ubuntu-latest) (push) Successful in 19s
test / test-python-version (windows-latest) (push) Successful in 49s
test / test-setup-cache (false, ubuntu-latest) (push) Successful in 20s
test / test-setup-cache (true, ubuntu-latest) (push) Successful in 38s
test / test-setup-cache-requirements-txt (push) Successful in 57s
test / test-setup-cache-dependency-glob (push) Successful in 41s
test / test-no-python-version (push) Successful in 51s
test / test-restore-cache-dependency-glob (push) Successful in 35s
test / test-default-version (macos-14) (push) Has been cancelled
test / test-default-version (macos-latest) (push) Has been cancelled
test / test-default-version (windows-latest) (push) Has been cancelled
test / test-checksum (map[checksum:a70cbfbf3bb5c08b2f84963b4f12c94e08fbb2468ba418a3bfe1066fbe9e7218 os:macos-latest]) (push) Has been cancelled
test / test-tool-install (macos-14) (push) Has been cancelled
test / test-tool-install (macos-latest) (push) Has been cancelled
test / test-tool-install (windows-latest) (push) Has been cancelled
test / test-tilde-expansion-tool-dirs (push) Has been cancelled
test / test-setup-cache (auto, selfhosted-ubuntu-arm64) (push) Has been cancelled
test / test-setup-cache (auto, windows-latest) (push) Has been cancelled
test / test-setup-cache (false, selfhosted-ubuntu-arm64) (push) Has been cancelled
test / test-setup-cache (false, windows-latest) (push) Has been cancelled
test / test-setup-cache (true, selfhosted-ubuntu-arm64) (push) Has been cancelled
test / test-setup-cache (true, windows-latest) (push) Has been cancelled
test / test-setup-cache-local (push) Has been cancelled
test / test-tilde-expansion-cache-local-path (push) Has been cancelled
test / test-tilde-expansion-cache-dependency-glob (push) Has been cancelled
test / test-restore-cache (auto, selfhosted-ubuntu-arm64) (push) Has been cancelled
test / test-restore-cache (auto, ubuntu-latest) (push) Has been cancelled
test / test-restore-cache (auto, windows-latest) (push) Has been cancelled
test / test-restore-cache (false, selfhosted-ubuntu-arm64) (push) Has been cancelled
test / test-restore-cache (false, ubuntu-latest) (push) Has been cancelled
test / test-restore-cache (false, windows-latest) (push) Has been cancelled
test / test-restore-cache (true, selfhosted-ubuntu-arm64) (push) Has been cancelled
test / test-restore-cache (true, ubuntu-latest) (push) Has been cancelled
test / test-restore-cache (true, windows-latest) (push) Has been cancelled
test / test-restore-cache-requirements-txt (push) Has been cancelled
test / test-restore-cache-local (push) Has been cancelled
test / cleanup-tilde-expansion-tests (push) Has been cancelled
test / all-tests-passed (push) Has been cancelled
Update known checksums / build (push) Failing after 56s
2025-03-19 16:51:30 +01:00
Kevin Stillhammer
389b596663 Set required workflow permissions (#329) 2025-03-18 15:21:29 +01:00
Kevin Stillhammer
04c950a723 Add workflow_dispatch triggers to every workflow (#326)
Allows for easier testing.
2025-03-18 15:04:58 +01:00
Kevin Stillhammer
0e855c90d0 Remove apk add python3 for musl test (#319)
Some checks failed
CodeQL / Analyze (TypeScript) (push) Failing after 25s
Release Drafter / ✏️ Draft release (push) Failing after 9s
Check dist/ / check-dist (push) Successful in 46s
test-cache / test-setup-cache (auto, ubuntu-latest) (push) Successful in 41s
test-cache / test-setup-cache (false, ubuntu-latest) (push) Successful in 40s
test-cache / test-setup-cache (true, ubuntu-latest) (push) Successful in 59s
test-cache / test-setup-cache-requirements-txt (push) Successful in 55s
test-cache / test-setup-cache-dependency-glob (push) Successful in 51s
test-cache / test-no-python-version (push) Successful in 1m8s
test / test-default-version (ubuntu-latest) (push) Successful in 33s
test / build (push) Successful in 1m23s
test / test-specific-version (0.3) (push) Successful in 52s
test / test-specific-version (0.3.0) (push) Successful in 33s
test / test-specific-version (0.3.2) (push) Successful in 34s
test / test-specific-version (0.3.x) (push) Successful in 49s
test / test-specific-version (>=0.3.0) (push) Successful in 45s
test / test-semver-range (push) Successful in 39s
test / test-pyproject-file-version (push) Successful in 29s
test / test-uv-file-version (push) Successful in 34s
test / test-checksum (4d9279ad5ca596b1e2d703901d508430eb07564dc4d8837de9e2fca9c90f8ecd, ubuntu-latest) (push) Successful in 33s
test / test-with-explicit-token (push) Successful in 44s
test / test-uvx (push) Successful in 34s
test / test-tool-install (ubuntu-latest) (push) Successful in 48s
test / test-python-version (macos-latest) (push) Successful in 1m2s
test / test-python-version (ubuntu-latest) (push) Successful in 1m4s
test / test-python-version (windows-latest) (push) Successful in 57s
test / test-musl (push) Failing after 20s
test / test-malformed-pyproject-file-fallback (push) Successful in 43s
test-cache / test-restore-cache-dependency-glob (push) Successful in 48s
test-cache-windows / test-setup-cache (push) Has been cancelled
test-cache / test-setup-cache (auto, selfhosted-ubuntu-arm64) (push) Has been cancelled
test-cache / test-setup-cache (false, selfhosted-ubuntu-arm64) (push) Has been cancelled
test-cache / test-setup-cache (true, selfhosted-ubuntu-arm64) (push) Has been cancelled
test-cache / test-setup-cache-local (push) Has been cancelled
test-cache / test-tilde-expansion-cache-local-path (push) Has been cancelled
test-cache / test-tilde-expansion-cache-dependency-glob (push) Has been cancelled
test-windows / test-default-version (push) Has been cancelled
test / test-default-version (macos-14) (push) Has been cancelled
test / test-default-version (macos-latest) (push) Has been cancelled
test / test-checksum (a70cbfbf3bb5c08b2f84963b4f12c94e08fbb2468ba418a3bfe1066fbe9e7218, macos-latest) (push) Has been cancelled
test / test-tool-install (macos-14) (push) Has been cancelled
test / test-tool-install (macos-latest) (push) Has been cancelled
test / test-tool-install (windows-latest) (push) Has been cancelled
test / test-tilde-expansion-tool-dirs (push) Has been cancelled
test-cache-windows / test-restore-cache (push) Has been cancelled
test-cache / test-restore-cache (auto, selfhosted-ubuntu-arm64) (push) Has been cancelled
test-cache / test-restore-cache (auto, ubuntu-latest) (push) Has been cancelled
test-cache / test-restore-cache (false, selfhosted-ubuntu-arm64) (push) Has been cancelled
test-cache / test-restore-cache (false, ubuntu-latest) (push) Has been cancelled
test-cache / test-restore-cache (true, selfhosted-ubuntu-arm64) (push) Has been cancelled
test-cache / test-restore-cache (true, ubuntu-latest) (push) Has been cancelled
test-cache / test-restore-cache-requirements-txt (push) Has been cancelled
test-cache / test-restore-cache-local (push) Has been cancelled
test-cache / cleanup-tilde-expansion-tests (push) Has been cancelled
Update known checksums / build (push) Failing after 14s
2025-03-12 09:27:54 +01:00
Kevin Stillhammer
e2e9087257 Support OS using musl (#284)
Some checks failed
test-cache-windows / test-setup-cache (push) Waiting to run
test-cache-windows / test-restore-cache (push) Blocked by required conditions
Release Drafter / ✏️ Draft release (push) Failing after 12s
test-windows / test-default-version (push) Waiting to run
test-cache / test-setup-cache (auto, ubuntu-latest) (push) Successful in 29s
test-cache / test-setup-cache (false, ubuntu-latest) (push) Failing after 31s
test-cache / test-setup-cache (true, ubuntu-latest) (push) Successful in 41s
test-cache / test-setup-cache-requirements-txt (push) Failing after 31s
Check dist/ / check-dist (push) Successful in 1m36s
test-cache / test-no-python-version (push) Failing after 30s
test-cache / test-setup-cache-dependency-glob (push) Successful in 51s
test / test-default-version (ubuntu-latest) (push) Failing after 31s
test / test-specific-version (0.3) (push) Successful in 49s
test / test-specific-version (0.3.0) (push) Failing after 30s
test / build (push) Successful in 1m29s
test / test-specific-version (0.3.2) (push) Failing after 30s
test / test-semver-range (push) Failing after 4s
test / test-specific-version (>=0.3.0) (push) Successful in 39s
test / test-specific-version (0.3.x) (push) Successful in 44s
test / test-pyproject-file-version (push) Failing after 4s
test / test-with-explicit-token (push) Failing after 3s
test / test-uvx (push) Failing after 3s
test / test-tool-install (ubuntu-latest) (push) Failing after 4s
test / test-python-version (macos-latest) (push) Failing after 5s
test / test-uv-file-version (push) Successful in 30s
test / test-python-version (ubuntu-latest) (push) Failing after 5s
test / test-malformed-pyproject-file-fallback (push) Failing after 4s
test / test-checksum (4d9279ad5ca596b1e2d703901d508430eb07564dc4d8837de9e2fca9c90f8ecd, ubuntu-latest) (push) Successful in 48s
test / test-musl (push) Failing after 0s
test-cache / test-restore-cache-dependency-glob (push) Failing after 5s
test / test-python-version (windows-latest) (push) Successful in 1m17s
CodeQL / Analyze (TypeScript) (push) Failing after 5m54s
Update known checksums / build (push) Failing after 21s
test-cache / test-setup-cache (auto, selfhosted-ubuntu-arm64) (push) Has been cancelled
test-cache / test-setup-cache (false, selfhosted-ubuntu-arm64) (push) Has been cancelled
test-cache / test-setup-cache (true, selfhosted-ubuntu-arm64) (push) Has been cancelled
test-cache / test-setup-cache-local (push) Has been cancelled
test-cache / test-tilde-expansion-cache-local-path (push) Has been cancelled
test-cache / test-tilde-expansion-cache-dependency-glob (push) Has been cancelled
test / test-default-version (macos-14) (push) Has been cancelled
test / test-default-version (macos-latest) (push) Has been cancelled
test / test-checksum (a70cbfbf3bb5c08b2f84963b4f12c94e08fbb2468ba418a3bfe1066fbe9e7218, macos-latest) (push) Has been cancelled
test / test-tool-install (macos-14) (push) Has been cancelled
test / test-tool-install (macos-latest) (push) Has been cancelled
test / test-tool-install (windows-latest) (push) Has been cancelled
test / test-tilde-expansion-tool-dirs (push) Has been cancelled
test-cache / test-restore-cache (auto, selfhosted-ubuntu-arm64) (push) Has been cancelled
test-cache / test-restore-cache (auto, ubuntu-latest) (push) Has been cancelled
test-cache / test-restore-cache (false, selfhosted-ubuntu-arm64) (push) Has been cancelled
test-cache / test-restore-cache (false, ubuntu-latest) (push) Has been cancelled
test-cache / test-restore-cache (true, selfhosted-ubuntu-arm64) (push) Has been cancelled
test-cache / test-restore-cache (true, ubuntu-latest) (push) Has been cancelled
test-cache / test-restore-cache-requirements-txt (push) Has been cancelled
test-cache / test-restore-cache-local (push) Has been cancelled
test-cache / cleanup-tilde-expansion-tests (push) Has been cancelled
Fixes: #278
2025-02-17 10:32:34 +01:00
Kevin Stillhammer
14dc0be27c Fallback if toml file parsing failed (#246) 2025-01-16 16:54:33 +01:00
Kevin Stillhammer
5ce9ee0011 Detect required-version from config file (#233)
1. If defined use version input
2. If defined use uv-file input
3. If defined use pyproject-file input
4. Search for required-version in uv.toml in repo root
5. Search for required-version in pyproject.toml in repo root
6. Use latest

Closes: #215
2025-01-13 15:24:25 +01:00
Kevin Stillhammer
dd578776bb Auto activate venv when python-version is set (#194)
Closes: #124
2024-12-20 08:24:43 +01:00
Kevin Stillhammer
e3017a763c Default to enable-cache: true on GitHub hosted runners (#193)
Closes: #54
2024-12-13 20:12:42 +01:00
Kevin Stillhammer
8bdd012be5 Add test for python-version (#177) 2024-11-29 09:32:51 +01:00
Kevin Stillhammer
ee4fa33003 Add input python-version (#174) 2024-11-28 20:41:37 +00:00
Kevin Stillhammer
420915557e Reduce test matrices (#173)
Basic functionality for the different OS is tested in
`test-latest-version` Everything else is not OS dependent
2024-11-28 21:07:46 +01:00
Kevin Stillhammer
caf0cab7a6 Expand TILDE (~) in path inputs (#160)
Closes: #159
2024-11-23 09:21:51 +01:00
Kevin Stillhammer
abac0ce7b0 Use runner label selfhosted-ubuntu-arm64 (#96)
Replaces oracle-aarch64 to better express what the runner is used for
2024-09-21 20:19:02 +02:00
Kevin Stillhammer
aeb46491c7 Set tool(-bin) dir and add to PATH (#87)
Fixes: #83
Fixes: #60
2024-09-21 10:14:36 +02:00
Kevin Stillhammer
ce0062aac7 Add support for semver version ranges (#82)
Closes: #38
2024-09-18 09:29:09 +00:00
Kevin Stillhammer
9f1f1fece2 Run prettier (#78) 2024-09-16 19:33:16 +00:00
Lukas Burgholzer
49df72dfcf 🚸 use GitHub token by default (#61)
This PR adjusts the action so that it is no longer necessary to
explicitly specify the GitHub token to circumvent the API rate limit.
To this end, it simply passes the repository's GitHub token (available
via `${{ github.token }}`) as a default for the `github_token` action
input.

This is similar to how this is handled in, e.g.,
https://github.com/peter-evans/create-pull-request; specifically
[here](5354f85616/action.yml (L4-L6)).
2024-09-11 08:18:23 +00:00
Kevin Stillhammer
79643936e1 Run test build only on ubuntu-latest (#51)
It is unnecessary to test this on several OS. This is done by the actual
action tests in other jobs.
2024-09-06 09:19:26 +02:00
Charlie Marsh
182c9c7e92 Change Prettier settings (#36)
## Summary

I know this is a little tedious but I'd prefer to use the same settings
as in Ruff.
2024-09-05 08:06:45 -04:00
Charlie Marsh
0fa3b93f6e Run Prettier over Markdown and YAML files (#35)
## Summary

Partly personal preference, but mostly to align with other Astral
projects.
2024-09-04 21:14:10 +00:00
Kevin Stillhammer
4bab96ca10 Use latest uv test versions 2024-08-24 00:48:09 +02:00
Kevin Stillhammer
de7c6e73c0 Remove debug logs 2024-08-24 00:46:39 +02:00
Kevin Stillhammer
65e8a8ce38 debug tool cache content 2024-08-24 00:31:50 +02:00
Kevin Stillhammer
18498fc78f Initial commit 2024-08-23 23:58:26 +02:00