2021-09-05 13:53:42 +05:30
|
|
|
name: Processing Tools
|
2021-09-02 02:22:45 +05:30
|
|
|
on: [push]
|
2021-09-02 02:41:39 +05:30
|
|
|
|
2021-09-02 02:22:45 +05:30
|
|
|
jobs:
|
2021-09-05 13:53:42 +05:30
|
|
|
|
2021-09-02 03:07:46 +05:30
|
|
|
pip:
|
2021-09-05 13:53:42 +05:30
|
|
|
|
2021-09-02 02:41:39 +05:30
|
|
|
runs-on: ${{ matrix.os }}
|
2021-09-05 13:53:42 +05:30
|
|
|
|
2021-09-02 02:41:39 +05:30
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-10-06 23:30:05 +05:30
|
|
|
python-version: ['3.7', '3.8', '3.9', '3.10']
|
2021-09-02 02:41:39 +05:30
|
|
|
os: [ubuntu-latest, macos-latest]
|
2021-09-05 13:53:42 +05:30
|
|
|
|
2021-09-02 02:22:45 +05:30
|
|
|
steps:
|
2021-09-02 02:41:39 +05:30
|
|
|
- uses: actions/checkout@v2
|
2021-09-05 13:53:42 +05:30
|
|
|
|
2021-09-02 02:41:39 +05:30
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
2021-09-05 13:53:42 +05:30
|
|
|
|
2021-09-02 02:41:39 +05:30
|
|
|
- name: Install dependencies
|
2021-09-02 02:22:45 +05:30
|
|
|
run: |
|
2021-09-02 02:41:39 +05:30
|
|
|
python -m pip install --upgrade pip
|
|
|
|
pip install pytest pandas scipy h5py vtk matplotlib pyyaml
|
2021-09-05 13:53:42 +05:30
|
|
|
|
2021-09-02 03:07:46 +05:30
|
|
|
- name: Install and run unit tests
|
2021-09-02 02:41:39 +05:30
|
|
|
run: |
|
|
|
|
python -m pip install ./python --no-deps -vv --use-feature=in-tree-build
|
2021-09-02 12:21:45 +05:30
|
|
|
COLUMNS=256 pytest python
|
2021-09-02 03:07:46 +05:30
|
|
|
|
|
|
|
apt:
|
2021-09-05 13:53:42 +05:30
|
|
|
|
2021-09-02 03:07:46 +05:30
|
|
|
runs-on: ubuntu-latest
|
2021-09-05 13:53:42 +05:30
|
|
|
|
2021-09-02 03:07:46 +05:30
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-09-05 13:53:42 +05:30
|
|
|
|
2021-09-02 03:07:46 +05:30
|
|
|
- name: Install pytest
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
pip install pytest
|
2021-09-05 13:53:42 +05:30
|
|
|
|
2021-09-02 03:07:46 +05:30
|
|
|
- name: Install dependencies
|
|
|
|
run: >
|
|
|
|
sudo apt-get update &&
|
2021-09-02 12:21:45 +05:30
|
|
|
sudo apt-get install python3-pip python3-pytest python3-pandas python3-scipy
|
2021-09-02 03:07:46 +05:30
|
|
|
python3-h5py python3-vtk7 python3-matplotlib python3-yaml -y
|
2021-09-05 13:53:42 +05:30
|
|
|
|
2021-09-02 03:07:46 +05:30
|
|
|
- name: Run unit tests
|
|
|
|
run: |
|
2021-09-02 11:34:09 +05:30
|
|
|
export PYTHONPATH=${PWD}/python
|
2021-09-02 12:21:45 +05:30
|
|
|
COLUMNS=256 python -m pytest python
|