Skip to content

Commit

Permalink
update CI actions, add pywis-pubsub example in schemas README (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Aug 28, 2024
1 parent 822e619 commit da9a050
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/specification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
&& sudo apt-get install -y pandoc \
&& sudo gem install asciidoctor asciidoctor-pdf
- name: checkout repository
uses: actions/checkout@v3
uses: actions/checkout@master
- name: build specification
run: |
cd standard \
Expand All @@ -39,7 +39,7 @@ jobs:
&& asciidoctor --trace -r asciidoctor-pdf --trace -b pdf -o /tmp/wis2-notification-message/kpi/${KPI_FILE_BASENAME}.pdf index.adoc \
&& cd ..
- name: checkout gh-pages branch
uses: actions/checkout@v3
uses: actions/checkout@master
with:
ref: gh-pages
- name: update gh-pages branch and publish
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9]
python-version: ["3.10", 3.11]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@master
- uses: actions/setup-python@v5
name: Setup Python ${{ matrix.python-version }}
with:
python-version: ${{ matrix.python-version }}
Expand Down
5 changes: 4 additions & 1 deletion schemas/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ include automated workflow via GitHub Actions.
# install the check-jsonschema Python package
pip3 install check-jsonschema

# validate a WWIS2 Notification Message on the command line
# validate a WIS2 Notification Message on the command line using JSON Schema
check-jsonschema --schemafile schemas/wis2-notification-message-bundled.json examples/example1.json

# validate a WIS2 Notification Message against the WNM ETS for full compliance
pywis-pubsub ets validate examples/example1.json
```

0 comments on commit da9a050

Please sign in to comment.