-
Notifications
You must be signed in to change notification settings - Fork 9
43 lines (35 loc) · 1.18 KB
/
json_test_suite.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: JSON Schema Test Suite
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch: # Allows manual triggering of the workflow
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Install dependencies
run: pip install -v .
- name: Clone JSON Schema Test Suite
run: git clone https://github.com/json-schema-org/JSON-Schema-Test-Suite.git
- name: Run tests
working-directory: ./json_test_suite
run: |
cargo run --release -- --root-dir "../JSON-Schema-Test-Suite" --output-path "test_suite_results.json"
cat test_suite_results.json
- name: Upload test suite results
uses: actions/upload-artifact@v3
with:
name: test-suite-results
path: json_test_suite/test_suite_results.json