From d3b2a8e6e9aa10d5b9bcef2446e3ec81d80c9d20 Mon Sep 17 00:00:00 2001 From: dustine32 Date: Thu, 25 Jan 2024 16:33:01 -0800 Subject: [PATCH] Create validate_json.yml action --- .github/workflows/validate_json.yml | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/validate_json.yml diff --git a/.github/workflows/validate_json.yml b/.github/workflows/validate_json.yml new file mode 100644 index 0000000..1e9dbd3 --- /dev/null +++ b/.github/workflows/validate_json.yml @@ -0,0 +1,31 @@ +name: Validate Submitted JSON + +on: + push: + branches: + - master + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + python-version: [3.5] + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Run tests + run: python src/simple_validator.py spec/syngo_spec.yaml json/