Release from staging to master 2024-02-05 #178
This file contains 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: 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 |