Skip to content

Commit 2430f23

Browse files
Add validate action
1 parent ef870c6 commit 2430f23

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# This workflow will run unit tests when main is updated, on pull requests or when manually activated
2+
3+
name: pytest
4+
5+
on:
6+
push:
7+
branches:
8+
main
9+
pull_request:
10+
workflow_dispatch:
11+
12+
jobs:
13+
test:
14+
strategy:
15+
matrix:
16+
os: [ubuntu-latest]
17+
runs-on: ${{ matrix.os }}
18+
steps:
19+
20+
- name: Check out repository
21+
uses: actions/checkout@v4
22+
with:
23+
repository: qupath/extension-catalog-model
24+
path: extension-catalog-model
25+
26+
- name: Set up python
27+
id: setup-python
28+
uses: actions/setup-python@v5
29+
with:
30+
python-version: "3.10"
31+
32+
- name: Install
33+
run: pip install extension-catalog-model
34+
35+
- name: Check out repository
36+
uses: actions/checkout@v4
37+
38+
- name: Run validation
39+
shell: python
40+
run: |
41+
from extension_catalog_model.model import *
42+
Catalog.parse_file("catalog.json")
43+

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
env

0 commit comments

Comments
 (0)