DAMASK_EICMD/.github/workflows/.python.yml

43 lines
1.3 KiB
YAML
Raw Normal View History

2021-09-02 12:21:45 +05:30
name: Test Python Library
on: [push]
jobs:
2021-09-02 03:07:46 +05:30
pip:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- 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 --upgrade pip
pip install pytest pandas scipy h5py vtk matplotlib pyyaml
2021-09-02 03:07:46 +05:30
- name: Install and run unit tests
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:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install pytest
run: |
python -m pip install --upgrade pip
pip install pytest
- 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
- 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