-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move from Travis CI to GitHub Actions (#24)
* Add GitHub Actions configuration * Delete Travis CI configuration * Return non-zero exit code for validation failures * Update build status badge
- Loading branch information
Showing
4 changed files
with
77 additions
and
18 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,46 @@ | ||
# for more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | ||
name: Validate test data | ||
|
||
on: | ||
push: | ||
branches: | ||
- "**" | ||
paths: | ||
- '.github/workflows/validator.yaml' | ||
- 'test-data-validator/**' | ||
- 'test-data/**' | ||
|
||
pull_request: | ||
branches: | ||
- "main" | ||
paths: | ||
- '.github/workflows/validator.yaml' | ||
- 'test-data-validator/**' | ||
- 'test-data/**' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
run-validator: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./test-data-validator | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install requests "jsonschema[format]" | ||
- name: Run validator | ||
run: | | ||
python validator.py |
This file was deleted.
Oops, something went wrong.
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