Skip to content

Merge pull request #14 from casework/test_python_3_12 #46

Merge pull request #14 from casework/test_python_3_12

Merge pull request #14 from casework/test_python_3_12 #46

Workflow file for this run

name: Continuous Integration
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- '3.9'
- '3.12'
steps:
# Checkout the repository for processing
- name: Checkout Repository
uses: actions/checkout@v3
# Setup the matrixed version of Python for testing
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# Run pre-commit checks for syntax compliance
- name: Pre-Commit Checks
run: |
pip -q install pre-commit
pre-commit run --all-files
# Build the modules and run them against the example directory to generate
# the CASE outputs
- name: Build CASE
run: |
python setup.py install
mkdir -p ./output/
case_from_dict ./output/dict-case.json
case_from_rdf ./output/rdf-case.json
# Test the output files to confirm they both exist and contain at least one triple
- name: Run Pytest
run: |
pip -q install pytest
pytest -v
# Test the output files to confirm they're both conformant to the CASE Ontology
- name: CASE Validation
uses: kchason/[email protected]
with:
case-path: ./output/
case-version: "case-1.3.0"