Skip to content

create monorepo with 6 standalone kestrel packages #892

create monorepo with 6 standalone kestrel packages

create monorepo with 6 standalone kestrel packages #892

Workflow file for this run

name: Unit testing on PR
on:
push:
branches:
- develop
- develop_*
paths:
- 'packages/**'
pull_request:
branches:
- develop
- develop_*
paths:
- 'packages/**'
types:
- opened
- reopened
- synchronize
jobs:
test-kestrel-core:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ['3.8', '3.9', '3.10', '3.11']
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
working-directory: ./packages/kestrel_core
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Python Tools
run: pip install --upgrade pip setuptools wheel pytest
- name: Install kestrel_core
run: pip install .
- name: Install kestrel_datasource_stixbundle
working-directory: ./packages/kestrel_datasource_stixbundle
run: pip install .
- name: Install kestrel_analytics_python (for test_completion.py)
working-directory: ./packages/kestrel_analytics_python
run: pip install .
- name: Unit testing
run: pytest -vv
test-kestrel-datasource-stixshifter:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ['3.8', '3.9', '3.10', '3.11.6']
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
working-directory: ./packages/kestrel_datasource_stixshifter
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Python Tools
run: pip install --upgrade pip setuptools wheel
- name: Install kestrel_core
working-directory: ./packages/kestrel_core
run: pip install .
- name: Install kestrel_datasource_stixshifter
run: pip install .[test]
- name: Unit testing
run: pytest -vv
test-kestrel-analytics-python:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ['3.8', '3.9', '3.10', '3.11']
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
working-directory: ./packages/kestrel_analytics_python
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Python Tools
run: pip install --upgrade pip setuptools wheel
- name: Install kestrel_core
working-directory: ./packages/kestrel_core
run: pip install .
- name: Install kestrel_datasource_stixbundle
working-directory: ./packages/kestrel_datasource_stixbundle
run: pip install .
- name: Install kestrel_analytics_python
run: pip install .[test]
- name: Unit testing
run: pytest -vv
test-kestrel-jupyter:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ['3.8', '3.9', '3.10', '3.11']
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
working-directory: ./packages/kestrel_jupyter
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Python Tools
run: pip install --upgrade pip setuptools wheel
- name: Install kestrel_core
working-directory: ./packages/kestrel_core
run: pip install .
- name: Install kestrel_datasource_stixbundle
working-directory: ./packages/kestrel_datasource_stixbundle
run: pip install .
- name: Install kestrel_datasource_stixshifter
working-directory: ./packages/kestrel_datasource_stixshifter
run: pip install .
- name: Install kestrel_analytics_python
working-directory: ./packages/kestrel_analytics_python
run: pip install .
- name: Install kestrel_analytics_docker
working-directory: ./packages/kestrel_analytics_docker
run: pip install .
- name: Install kestrel_jupyter
run: pip install .[test]
- name: Unit testing
run: pytest -vv