Skip to content

Commit 92022ea

Browse files
Merge pull request #2 from kchason/automated-case-validation
Automated CASE Validation
2 parents b9e800d + bcd62bb commit 92022ea

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

.github/workflows/python-package.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,16 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
python-version: [3.7, 3.8, 3.9]
20+
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
2121

2222
steps:
23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v3
24+
2425
- name: Set up Python ${{ matrix.python-version }}
25-
uses: actions/setup-python@v2
26+
uses: actions/setup-python@v4
2627
with:
2728
python-version: ${{ matrix.python-version }}
29+
2830
- name: Install dependencies
2931
run: |
3032
python -m venv development
@@ -33,12 +35,22 @@ jobs:
3335
python -m pip install flake8 pylint pytest rdflib
3436
python setup.py install
3537
pillow2case --help
38+
3639
- name: Lint with flake8
3740
run: |
3841
. development/bin/activate
3942
flake8 --count --select=E9,F63,F7,F82 --show-source --statistics */*.py *.py
4043
flake8 --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics */*.py *.py
44+
4145
- name: Lint with pylint
4246
run: |
4347
. development/bin/activate
4448
pylint --exit-zero *.py */*.py
49+
50+
# Run the CASE validation job to confirm all examples in pillow_output_examples are valid
51+
- name: CASE Export Validation
52+
uses: kchason/[email protected]
53+
with:
54+
case-path: ./pillow_output_examples/
55+
case-version: "case-1.1.0"
56+
extension-filter: "json"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[![CASE-Implementation-PyPI-Pillow](https://github.com/casework/CASE-Implementation-PyPI-Pillow/actions/workflows/python-package.yml/badge.svg)](https://github.com/casework/CASE-Implementation-PyPI-Pillow/actions/workflows/python-package.yml)
2-
2+
![CASE Version](https://img.shields.io/badge/CASE%20Version-1.1.0-brightgreen)
33

44
# CASE-Implementation-Pillow
55
A repository for the development of a [Pillow](https://pypi.org/project/Pillow/) to [CASE](https://caseontology.org) implementation.

0 commit comments

Comments
 (0)