Update STJ validator tests #40
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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test-python: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.8, 3.9, '3.10'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
cd tools/python/ | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Run Python tests | |
run: | | |
# Run from project root but specify test directory | |
pytest tests/python/ | |
test-javascript: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: Install dependencies | |
working-directory: ./tools/javascript | |
run: npm install | |
- name: List files for debugging | |
working-directory: ./tools/javascript | |
run: | | |
echo "Current directory: $(pwd)" | |
ls -R | |
- name: Run JavaScript tests | |
working-directory: ./tools/javascript | |
run: npm test |