polishing

This commit is contained in:
Martin Diehl 2021-09-05 10:23:42 +02:00
parent 0fccba88ce
commit 9453868cd8
2 changed files with 28 additions and 11 deletions

View File

@ -1,5 +1,4 @@
name: Fortran name: Grid and Mesh Solver
on: [push] on: [push]
env: env:
@ -10,18 +9,22 @@ env:
HOMEBREW_NO_INSTALL_CLEANUP: "ON" HOMEBREW_NO_INSTALL_CLEANUP: "ON"
jobs: jobs:
gcc: gcc:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest, macos-latest] os: [ubuntu-latest, macos-latest]
gcc_v: [9, 10, 11] # Version of GCC compilers we want to use. gcc_v: [9, 10, 11] # Version of GCC compilers
env: env:
GCC_V: ${{ matrix.gcc_v }} GCC_V: ${{ matrix.gcc_v }}
steps: steps:
- name: Checkout code
uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up Python 3.x - name: Set up Python 3.x
uses: actions/setup-python@v1 uses: actions/setup-python@v1
@ -53,7 +56,7 @@ jobs:
export PETSC_ARCH=gcc${GCC_V} export PETSC_ARCH=gcc${GCC_V}
printenv >> $GITHUB_ENV printenv >> $GITHUB_ENV
- name: Cache PETSc Installation - name: Cache PETSc installation
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: petsc-3.15.4 path: petsc-3.15.4
@ -90,16 +93,18 @@ jobs:
./bin/DAMASK_grid -l tensionX.yaml -g 20grains16x16x16.vti -w examples/grid ./bin/DAMASK_grid -l tensionX.yaml -g 20grains16x16x16.vti -w examples/grid
intel: intel:
runs-on: [ubuntu-latest] runs-on: [ubuntu-latest]
strategy: strategy:
matrix: matrix:
intel_v: [classic, llvm] # Version of Intel compilers we want to use. intel_v: [classic, llvm] # Variant of Intel compilers
env: env:
INTEL_V: ${{ matrix.intel_v }} INTEL_V: ${{ matrix.intel_v }}
steps: steps:
- name: Checkout code - uses: actions/checkout@v2
uses: actions/checkout@v2
- name: Set up Python 3.x - name: Set up Python 3.x
uses: actions/setup-python@v1 uses: actions/setup-python@v1
@ -125,7 +130,7 @@ jobs:
export PETSC_ARCH=intel-${INTEL_V} export PETSC_ARCH=intel-${INTEL_V}
printenv >> $GITHUB_ENV printenv >> $GITHUB_ENV
- name: Cache PETSc Installation - name: Cache PETSc installation
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: petsc-3.15.4 path: petsc-3.15.4

View File

@ -1,41 +1,53 @@
name: Test Python Library name: Processing Tools
on: [push] on: [push]
jobs: jobs:
pip: pip:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
python-version: [3.7, 3.8, 3.9] python-version: [3.7, 3.8, 3.9]
os: [ubuntu-latest, macos-latest] os: [ubuntu-latest, macos-latest]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install pytest pandas scipy h5py vtk matplotlib pyyaml pip install pytest pandas scipy h5py vtk matplotlib pyyaml
- name: Install and run unit tests - name: Install and run unit tests
run: | run: |
python -m pip install ./python --no-deps -vv --use-feature=in-tree-build python -m pip install ./python --no-deps -vv --use-feature=in-tree-build
COLUMNS=256 pytest python COLUMNS=256 pytest python
apt: apt:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install pytest - name: Install pytest
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install pytest pip install pytest
- name: Install dependencies - name: Install dependencies
run: > run: >
sudo apt-get update && sudo apt-get update &&
sudo apt-get install python3-pip python3-pytest python3-pandas python3-scipy sudo apt-get install python3-pip python3-pytest python3-pandas python3-scipy
python3-h5py python3-vtk7 python3-matplotlib python3-yaml -y python3-h5py python3-vtk7 python3-matplotlib python3-yaml -y
- name: Run unit tests - name: Run unit tests
run: | run: |
export PYTHONPATH=${PWD}/python export PYTHONPATH=${PWD}/python