-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatically check if test runner is available #53
Comments
Digging into the details a little more: As an alternative to having For example, - uses: leanprover/lean-action
with:
auto_config: true Users could optionally override the behavior for specific steps while still taking advantage of the automatic configuration: - uses: leanprover/lean-action
with:
auto_config: true
test: false
check-reservoir-eligibility: true Or if they have a specific need in their workflow, such as just running - uses: leanprover/lean-action
with:
auto-config: false
lean4checker: true We could make What are your thoughts @Seasawher? |
Also see related discussion on #30 |
I think |
I don't think |
How do you envision users invoking |
I now understand the intent of auto-config! A workflow that enables only lean4checker can be written concisely with |
However, even with |
how about do you think? |
I agree that it doesn't make sense to run If the only option that enables a |
The current mathlib dependency detection uses grep and is brittle. Giving users the option to manually enable the Mathlib cache is intended to safeguard against potential issues with automatic detection. I just created #57 to use Lake's API instead of grep. After that issue is completed, I think you are right that we should simplify this input to remove the |
just exclude! otherwise its hard for other actions use this action in their workflows. just now I want this action in https://github.com/oliver-butterley/lean-update, so I highly want automatic test_runner detection. see also: oliver-butterley/lean-update#16 |
This seems like it goes against the intention of #26, which is to provide users with useful information on
Sorry, I now understand the use case here in |
I have created #60 to track the The introduction of |
@Seasawher I just opened #61, which relates to both this issue and #30. Could you look to see if you think the proposed changes would address the use case in |
This is exactly what we want! Thank you. |
Excellent. I will include this issue in the list of issues closed by #61. |
`auto-config` allows users to specify if `lean-action` should use the Lake workspace to automatically decide which CI features to run. `build` allows users to specify if `lean-action` runs `lake build`. By default, `auto-config: true`. The `test` and `build` (and soon `lint`, see #46) inputs allow users to override the automatically configured behavior or configure `lean-action` when `auto-config: false`. `auto-config: true` is close to the previous default behavior, however there is a difference in the outcome of the `lake test` step. When users set `test: true` manually, `lean-action` must find tests with `lake check-test` and run `lake test` or it will fail (this was the previous behavior). However with `auto-config: true`, if `lake check-test` fails, `lean-action` will not run `lake test` and this won't cause `lean-action` to fail. Closes #60, #53, and #30.
Closed by #61 |
Automatically checks if
test_driver
ortest_runner
is defined inlakefile.lean
and executeslake test
if it is defined, otherwise does not.It would be tedious to have the user manually enter whether or not to run
lake test
each time. default input should beauto
.The text was updated successfully, but these errors were encountered: