-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (36 loc) · 1 KB
/
validate-catalog.yml
File metadata and controls
45 lines (36 loc) · 1 KB
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
44
45
# This workflow will run unit tests when main is updated, on pull requests or when manually activated
name: pytest
on:
push:
branches:
main
pull_request:
workflow_dispatch:
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
repository: qupath/extension-catalog-model
path: extension-catalog-model
- name: Set up python
id: setup-python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install
run: pip install ./extension-catalog-model
- name: Check out repository
uses: actions/checkout@v4
- name: Run validation
shell: python
run: |
from extension_catalog_model.model import *
with open('catalog.json') as f:
jsontext = f.read()
Catalog.model_validate_json(jsontext)