-
-
Notifications
You must be signed in to change notification settings - Fork 422
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
Prevent tests from running on forks #2280
Prevent tests from running on forks #2280
Conversation
I take it forks cannot use caches in the same way? And even if they can, they will still have to generate a cache to begin with? |
Codecov Report
@@ Coverage Diff @@
## master #2280 +/- ##
==========================================
- Coverage 71.84% 71.81% -0.03%
==========================================
Files 133 135 +2
Lines 12398 12431 +33
==========================================
+ Hits 8907 8927 +20
- Misses 3491 3504 +13
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
tardis/.github/workflows/tests.yml Lines 22 to 24 in b3bc761
I'm afraid I don't know if this works completely as intended. Here is the workflow file. |
As far as I remember, that creates a group depending if the workflow runs on a branch of the repository or runs on a pull request. The part It wasn't designed with forks in mind, I don't know what happens there. EDIT: I think it's working as expected, you have different results because one run occurs in a branch of your fork, and the other in a pull request. |
I agree- this is working correctly. My apologies. I also found this- might be of interest: |
* set repository owner * has to be in quotes * Leave spaces before and after ==
📝 Description
This is to prevent consumption of LFS resources.
📌 Resources
Examples, notebooks, and links to useful references.
https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
https://github.com/atharva-2001/tardis/actions/runs/4742893534
🚦 Testing
How did you test these changes?
☑️ Checklist
build_docs
label