DAMASK_EICMD/.github/workflows/Python.yml

64 lines
1.7 KiB
YAML
Raw Normal View History

2021-09-05 13:53:42 +05:30
name: Processing Tools
on: [push]
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
runs-on: ${{ matrix.os }}
2021-09-05 13:53:42 +05:30
strategy:
matrix:
python-version: ['3.8', '3.9'] #, '3.10']
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
steps:
- uses: actions/checkout@v2
2021-09-05 13:53:42 +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
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pandas scipy h5py vtk matplotlib pyyaml
2021-09-05 13:53:42 +05:30
- name: Install and run unit tests (Unix)
if: runner.os != 'Windows'
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
- 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
# https://github.com/actions/virtual-environments/issues/4790
2021-09-02 03:07:46 +05:30
run: >
sudo apt-get update &&
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
COLUMNS=256 pytest python