-
Notifications
You must be signed in to change notification settings - Fork 632
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix CRON Let's fix the cron in #279 so that it doesn't fail every time: https://github.com/GoogleChrome/related-website-sets/actions/workflows/rws-submissions-checks.yml?page=2&query=event%3Aschedule Tested by running on all pull requests in the new action before being reverted back: * Update rws-submissions-checks.yml * Create requirements.txt * Update rws-submissions-checks.yml * fix * fix * fix * test# Please enter the commit message for your changes. Lines starting * fix * fix# * test * test * fix# * fix * fix * fix * fix * fix# * fix * fix * cron only * Update rws-submissions-checks.yml * Update and rename cron.yml to main.yml * Update main.yml
- Loading branch information
Showing
4 changed files
with
36 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Main Branch Validations | ||
on: | ||
push: | ||
branches: | ||
- main | ||
schedule: | ||
- cron: '0 14 * * 2' # 2pm UTC each Tuesday | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
cache: 'pip' | ||
check-latest: true | ||
- name: Run Tests and Validate JSON | ||
run: | | ||
pip3 install -r requirements.txt | ||
python3 tests/rws_tests.py | ||
python3 check_sites.py -i related_website_sets.JSON --with_diff --strict_formatting > results.txt | ||
- name: Read Results | ||
id: read_results | ||
uses: andstor/file-reader-action@v1 | ||
with: | ||
path: "results.txt" | ||
- name: Record Failure | ||
if: steps.read_results.outputs.contents != 'success' | ||
uses: actions/github-script@v3 | ||
with: | ||
script: core.setFailed('This run has failed.') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.13 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
jsonschema | ||
publicsuffix2 | ||
requests |