-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed file read instructions that was OS-dependent
added test workflow for multiple OSs and multiple python versions python version dependency relaxed to v3.9
- Loading branch information
1 parent
6ad01cf
commit a1fa50f
Showing
5 changed files
with
39 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Code Testing | ||
|
||
on: [ push ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest, macos-latest, windows-latest ] | ||
python-version: [ "3.9", "3.10", "3.11" ] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Testing with pytest | ||
run: pytest ./json2graph/tests/test_main.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ tool: | |
authors: | ||
- Pedro Paulo F. Barcelos <[email protected]> | ||
dependencies: | ||
python: ^3.11 | ||
python: ^3.9 | ||
pyyaml: ^6.0.1 | ||
rdflib: ^7.0.0 | ||
validators: ^0.22.0 | ||
|
@@ -34,4 +34,4 @@ tool: | |
repository: https://w3id.org/ontouml/json2graph | ||
urls: | ||
PyPi Project: https://pypi.org/project/ontouml-json2graph/ | ||
version: 1.2.0 | ||
version: 1.2.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "ontouml-json2graph" | ||
version = "1.2.0" | ||
version = "1.2.1" | ||
description = "OntoUML JSON2Graph Decoder" | ||
license = "Apache-2.0" | ||
authors = ["Pedro Paulo F. Barcelos <[email protected]>"] | ||
|
@@ -21,7 +21,7 @@ conformsToBase = "https://w3id.org/ontouml#" | |
conformsToVersion = "v1.1.0" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.11" | ||
python = "^3.9" | ||
pyyaml = "^6.0.1" | ||
rdflib = "^7.0.0" | ||
validators = "^0.22.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters