Skip to content

Commit

Permalink
actually fix the ci
Browse files Browse the repository at this point in the history
  • Loading branch information
calmacx committed Nov 2, 2023
1 parent 821714f commit 6a7ada4
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,28 @@ name: Pytest
on: [push]

jobs:
check_json:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Check JSON
run: |
file_path="available.json"
if [ -f "$file_path" ]; then
if jq . "$file_path" >/dev/null 2>&1; then
echo "JSON file is valid."
else
echo "JSON file is not valid."
exit 1
fi
else
echo "JSON file does not exist."
exit 1
fi
test:
runs-on: ubuntu-latest
steps:
Expand All @@ -26,6 +48,8 @@ jobs:
pytest
deploy:
runs-on: ubuntu-latest
needs: test
if: success() && github.ref == 'refs/heads/master'
steps:
- uses: actions/setup-python@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion available.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"2.1.2"
],
"GWDM": [
"1.0"
"1.0",
],
"SchemaOrg": [
"default",
Expand Down

0 comments on commit 6a7ada4

Please sign in to comment.