Skip to content

Automated CASE Validation #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m venv development
Expand All @@ -33,12 +35,22 @@ jobs:
python -m pip install flake8 pylint pytest rdflib
python setup.py install
pillow2case --help

- name: Lint with flake8
run: |
. development/bin/activate
flake8 --count --select=E9,F63,F7,F82 --show-source --statistics */*.py *.py
flake8 --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics */*.py *.py

- name: Lint with pylint
run: |
. development/bin/activate
pylint --exit-zero *.py */*.py

# Run the CASE validation job to confirm all examples in pillow_output_examples are valid
- name: CASE Export Validation
uses: kchason/case-validation-action@v2.5
with:
case-path: ./pillow_output_examples/
case-version: "case-1.1.0"
extension-filter: "json"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![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)

![CASE Version](https://img.shields.io/badge/CASE%20Version-1.1.0-brightgreen)

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