update README #448
Workflow file for this run
This file contains hidden or 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
| name: test-publish-subscribe-download | |
| on: | |
| [ push, pull_request ] | |
| jobs: | |
| test-publish-subscribe-download: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@master | |
| - uses: actions/setup-python@v6 | |
| name: setup Python | |
| with: | |
| python-version: '3.12' | |
| - name: Install pywis-pubsub | |
| run: | | |
| pip3 install . | |
| pywis-pubsub --version | |
| pywis-pubsub schema sync | |
| - name: run mosquitto container, detached | |
| run: | | |
| docker run --rm -d -p 1883:1883 -v $PWD/.github/workflows/test-data/mosquitto.conf:/mosquitto/config/mosquitto.conf --name pywis_pubsub-mqtt eclipse-mosquitto | |
| - name: run tests | |
| run: | | |
| python3 tests/run_tests.py | |
| - name: subscribe, publish and download without message validation | |
| run: | | |
| rm -rf .github/workflows/test-data/*.bufr4 | |
| pywis-pubsub subscribe --config .github/workflows/test-data/sub-no-msg-validation.yml --download > /tmp/subscribe.log & | |
| sleep 1 | |
| pywis-pubsub publish --config .github/workflows/test-data/pub-config.yml -u https://wmostorage.blob.core.windows.net/wmo-public/wmo-information-system/pywis-pubsub-test/WIGOS_0-454-2-AWSCHIKANGAWA_20221109T135500.bufr4 -g 33.8025,-11.8415 -w 0-454-2-AWSCHIKANGAWA | |
| sleep 1 | |
| less /tmp/subscribe.log | |
| ls -lh .github/workflows/test-data/origin/a/wis2/mwi/malawi_wmo_demo/data/core/weather/surface-based-observations/synop/WIGOS_0-454-2-AWSCHIKANGAWA_20221109T135500.bufr4 | |
| - name: subscribe, publish and download with message validation | |
| run: | | |
| rm -rf .github/workflows/test-data/*.bufr4 | |
| pywis-pubsub subscribe --config .github/workflows/test-data/sub-with-msg-validation.yml --download > /tmp/subscribe.log & | |
| sleep 1 | |
| pywis-pubsub publish --config .github/workflows/test-data/pub-config.yml -u https://wmostorage.blob.core.windows.net/wmo-public/wmo-information-system/pywis-pubsub-test/WIGOS_0-454-2-AWSCHIKANGAWA_20221109T135500.bufr4 -g 33.8025,-11.8415 -w 0-454-2-AWSCHIKANGAWA | |
| sleep 1 | |
| less /tmp/subscribe.log | |
| ls -lh .github/workflows/test-data/origin/a/wis2/mwi/malawi_wmo_demo/data/core/weather/surface-based-observations/synop/WIGOS_0-454-2-AWSCHIKANGAWA_20221109T135500.bufr4 | |
| - name: subscribe, publish and download with file-based publication | |
| run: | | |
| rm -rf .github/workflows/test-data/*.bufr4 | |
| pywis-pubsub subscribe --config .github/workflows/test-data/sub-with-msg-validation.yml --download & | |
| sleep 1 | |
| pywis-pubsub publish --config .github/workflows/test-data/pub-config.yml --wnm .github/workflows/test-data/example-message.json | |
| sleep 1 | |
| ls -lh .github/workflows/test-data/origin/a/wis2/mwi/malawi_wmo_demo/data/core/weather/surface-based-observations/synop/WIGOS_0-454-2-AWSCHIKANGAWA_20221109T135500.bufr4 |