Skip to content

CI

CI #512

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Schedule a nightly build. Times are UTC
# See https://docs.github.com/en/actions/reference/events-that-trigger-workflows#scheduled-events
schedule:
# 5:15 am UTC (https://en.wikipedia.org/wiki/5:15)
- cron: '15 5 * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# Default builds are on Ubuntu
os: [ubuntu-latest]
python-version: [3.7, 3.9, 3.11]
include:
# Also test on macOS and Windows using latest Python 3
- os: macos-latest
python-version: 3.x
- os: windows-latest
python-version: 3.x
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install .
- name: Test with unittest
run: |
python test/test_ontology.py