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:
|
2022-01-26 18:40:21 +05:30
|
|
|
python-version: ['3.8', '3.9'] #, '3.10']
|
2022-03-27 02:45:26 +05:30
|
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
2022-04-15 19:18:21 +05:30
|
|
|
fail-fast: false
|
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
|
|
|
|
2022-03-27 02:45:26 +05:30
|
|
|
- name: Install and run unit tests (Unix)
|
|
|
|
if: runner.os != 'Windows'
|
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
|
|
|
|
2022-03-27 02:45:26 +05:30
|
|
|
- name: Install and run unit tests (Windows)
|
|
|
|
if: runner.os == 'Windows'
|
|
|
|
run: |
|
|
|
|
python -m pip install ./python --no-deps -vv --use-feature=in-tree-build
|
|
|
|
pytest python -k 'not XDMF'
|
|
|
|
|
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
|
2021-12-23 23:53:02 +05:30
|
|
|
# https://github.com/actions/virtual-environments/issues/4790
|
2021-09-02 03:07:46 +05:30
|
|
|
run: >
|
|
|
|
sudo apt-get update &&
|
2021-12-23 23:53:02 +05:30
|
|
|
sudo apt-get remove mysql* &&
|
|
|
|
sudo apt-get install python3-pandas python3-scipy 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-12-23 23:53:02 +05:30
|
|
|
COLUMNS=256 pytest python
|