Skip to content

Commit

Permalink
Merge pull request #55 from TIBHannover/pytest_action
Browse files Browse the repository at this point in the history
pytest in .github/workflows/pytest.yml
  • Loading branch information
andrecastro0o authored Dec 18, 2020
2 parents 4543ae5 + 74d9176 commit 805052f
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,4 @@ jobs:
python -c 'import rdflib.plugins.sparql'
- name: run application
run: |
ontology2smw --format ttl --ontology https://raw.githubusercontent.com/tibonto/aeon/master/aeon.ttl
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest tox
pip install -r requirements.txt
- name: pytest
run: |
pytest -m "not smw"
ontology2smw --format ttl --ontology https://raw.githubusercontent.com/tibonto/aeon/master/aeon.ttl
34 changes: 34 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: pytest

on:
push:
branches: [ master, issue31_ontologies_wout_aeon ]
pull_request:
branches: [ master, issue31_ontologies_wout_aeon ]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: install application
run: |
python setup.py install
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -r requirements.txt
- name: pytest
run: |
pytest -m "not smw"
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
![ontology2smw build](https://github.com/TIBHannover/ontology2smw/workflows/ontology2smw%20build/badge.svg)
![pytest](https://github.com/TIBHannover/ontology2smw/workflows/pytest/badge.svg)

# Ontology to SMW
_**Automating an RDF ontology import into Semantic Mediawiki**_
Expand Down

0 comments on commit 805052f

Please sign in to comment.