Skip to content

Release from staging to master 2024-03-22 #221

Release from staging to master 2024-03-22

Release from staging to master 2024-03-22 #221

Workflow file for this run

name: Schema Linting and Tests
on:
push:
branches: [ "master", "staging"]
pull_request:
branches: [ "master", "staging" ]
permissions:
contents: read
jobs:
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3
uses: actions/setup-python@v3
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run schema linter
run: python ./src/schema_linter.py
- name: Other Tests
run: python -m unittest discover --start-directory tests/python
tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: tests
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '16.x'
cache: npm
cache-dependency-path: tests/package-lock.json
- run: npm ci
- run: npm run build --if-present
- run: npm test