Merge develop into develop_v1 #962
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
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', '3.12'] | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash | |
working-directory: ./packages/kestrel_core | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
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', '3.12'] | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash | |
working-directory: ./packages/kestrel_datasource_stixshifter | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
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', '3.12'] | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash | |
working-directory: ./packages/kestrel_analytics_python | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
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', '3.12'] | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash | |
working-directory: ./packages/kestrel_jupyter | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
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 |