Skip to content

Commit

Permalink
Revert "Run only pytest CI (py3.7-8) on push"
Browse files Browse the repository at this point in the history
This reverts commit a80a96e.
  • Loading branch information
CasperWA committed Feb 3, 2023
1 parent f2754e8 commit 8e0dc09
Showing 1 changed file with 108 additions and 108 deletions.
216 changes: 108 additions & 108 deletions .github/workflows/ci_workflow.yml
Original file line number Diff line number Diff line change
@@ -1,63 +1,63 @@
name: CI Tests

on:
# pull_request:
pull_request:
push:
# branches:
# - master
# - 'push-action/**'
branches:
- master
- 'push-action/**'

jobs:
# tests:
# name: External
# uses: SINTEF/ci-cd/.github/workflows/ci_tests.yml@v1
# with:
# # General
# install_extras: "[dev,docs]"

# # pre-commit
# run_pre-commit: true
# python_version_pre-commit: "3.8"
# skip_pre-commit_hooks: pylint

# # pylint
# run_pylint: true
# python_version_pylint_safety: "3.7"
# pylint_options: "--rcfile=pyproject.toml"
# pylint_targets: "*.py tools emmopy ontopy"

# # safety
# # Ignore ID 44715 for now.
# # See this NumPy issue for more information: https://github.com/numpy/numpy/issues/19038
# # Also ignore IDs 44716 and 44717 as they are not deemed to be as severe as it is
# # laid out in the CVE.
# # Remove ignoring 48547 as soon as RDFLib/rdflib#1844 has been fixed and the fix
# # has been released.
# run_safety: true
# safety_options: |
# --ignore=44715
# --ignore=44716
# --ignore=44717
# --ignore=48547

# # Build distribution
# run_build_package: true
# python_version_package: "3.7"
# build_cmd: "python -m build"

# # Build documentation
# # Exclude base classes in emmopy.emmocheck
# run_build_docs: true
# python_version_docs: "3.7"
# update_python_api_ref: true
# update_docs_landing_page: true
# package_dirs: |
# emmopy
# ontopy
# special_file_api_ref_options: "emmopy/emmocheck.py,show_bases: false"
# landing_page_replacements: |
# (LICENSE.txt),(LICENSE.md)
# (tools),(../tools)
tests:
name: External
uses: SINTEF/ci-cd/.github/workflows/ci_tests.yml@v1
with:
# General
install_extras: "[dev,docs]"

# pre-commit
run_pre-commit: true
python_version_pre-commit: "3.8"
skip_pre-commit_hooks: pylint

# pylint
run_pylint: true
python_version_pylint_safety: "3.7"
pylint_options: "--rcfile=pyproject.toml"
pylint_targets: "*.py tools emmopy ontopy"

# safety
# Ignore ID 44715 for now.
# See this NumPy issue for more information: https://github.com/numpy/numpy/issues/19038
# Also ignore IDs 44716 and 44717 as they are not deemed to be as severe as it is
# laid out in the CVE.
# Remove ignoring 48547 as soon as RDFLib/rdflib#1844 has been fixed and the fix
# has been released.
run_safety: true
safety_options: |
--ignore=44715
--ignore=44716
--ignore=44717
--ignore=48547
# Build distribution
run_build_package: true
python_version_package: "3.7"
build_cmd: "python -m build"

# Build documentation
# Exclude base classes in emmopy.emmocheck
run_build_docs: true
python_version_docs: "3.7"
update_python_api_ref: true
update_docs_landing_page: true
package_dirs: |
emmopy
ontopy
special_file_api_ref_options: "emmopy/emmocheck.py,show_bases: false"
landing_page_replacements: |
(LICENSE.txt),(LICENSE.md)
(tools),(../tools)
pytest:
Expand All @@ -67,7 +67,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8"] #, "3.9", "3.10"]
python-version: ["3.7", "3.8", "3.9", "3.10"]

steps:
- name: Checkout repository
Expand Down Expand Up @@ -111,56 +111,56 @@ jobs:
# cd -


# ontodoc:
# name: EMMO documentation (test using ontodoc)
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3

# - name: Set up Python 3.7
# uses: actions/setup-python@v4
# with:
# python-version: "3.7"

# - name: Check Ubuntu version we are running under
# run: |
# uname -a
# sudo apt-get update

# - name: Current environment
# run: env

# - name: Install pandoc 2.1.2
# run: |
# #sudo apt-get install -y pandoc
# wget https://github.com/jgm/pandoc/releases/download/2.1.2/pandoc-2.1.2-1-amd64.deb
# sudo apt-get install -y ./pandoc-2.1.2-1-amd64.deb

# - name: Install tzdata non-interactively
# run: |
# sudo ln -fs /usr/share/zoneinfo/Europe/Oslo /etc/localtime
# DEBIAN_FRONTEND=noninteractive sudo apt-get install -y --no-install-recommends tzdata
# sudo dpkg-reconfigure --frontend noninteractive tzdata

# - name: Install other dependencies
# run: |
# python -m pip install --upgrade pip
# pip install -r requirements.txt
# sudo apt-get update
# sudo apt-get install -y graphviz
# sudo apt-get install -y texlive-xetex
# sudo apt-get install -y texlive-latex-extra

# - name: Install EMMOntoPy
# run: |
# python setup.py install

# - name: Create EMMO documentation
# run: |
# cd examples/emmodoc
# python ../../tools/ontodoc -f simple-html emmo-inferred emmo-simple.html
# python ../../tools/ontodoc -t emmo.md -p no-self-contained emmo-inferred emmo.html
# # pdf generation is commented out as there is a xetex error which
# # needs to be resolved if we decide to keep ontodoc as a tool.
# # python ../../tools/ontodoc -t emmo.md emmo-inferred emmo.pdf
# cd -
ontodoc:
name: EMMO documentation (test using ontodoc)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Python 3.7
uses: actions/setup-python@v4
with:
python-version: "3.7"

- name: Check Ubuntu version we are running under
run: |
uname -a
sudo apt-get update
- name: Current environment
run: env

- name: Install pandoc 2.1.2
run: |
#sudo apt-get install -y pandoc
wget https://github.com/jgm/pandoc/releases/download/2.1.2/pandoc-2.1.2-1-amd64.deb
sudo apt-get install -y ./pandoc-2.1.2-1-amd64.deb
- name: Install tzdata non-interactively
run: |
sudo ln -fs /usr/share/zoneinfo/Europe/Oslo /etc/localtime
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y --no-install-recommends tzdata
sudo dpkg-reconfigure --frontend noninteractive tzdata
- name: Install other dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
sudo apt-get update
sudo apt-get install -y graphviz
sudo apt-get install -y texlive-xetex
sudo apt-get install -y texlive-latex-extra
- name: Install EMMOntoPy
run: |
python setup.py install
- name: Create EMMO documentation
run: |
cd examples/emmodoc
python ../../tools/ontodoc -f simple-html emmo-inferred emmo-simple.html
python ../../tools/ontodoc -t emmo.md -p no-self-contained emmo-inferred emmo.html
# pdf generation is commented out as there is a xetex error which
# needs to be resolved if we decide to keep ontodoc as a tool.
# python ../../tools/ontodoc -t emmo.md emmo-inferred emmo.pdf
cd -

0 comments on commit 8e0dc09

Please sign in to comment.