fix [savedata] intend in postprocessor #274
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: SHARPy Tests | |
on: | |
push: | |
paths: | |
- '*.py' | |
- 'lib/*' | |
- '.github/workflows/sharpy*' | |
pull_request: | |
branches: | |
- main | |
- develop | |
- 'rc*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.10.8] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Set up GCC | |
uses: egor-tensin/setup-gcc@v1 | |
with: | |
version: 10 | |
platform: x64 | |
- name: Setup conda | |
uses: s-weigand/setup-conda@v1 | |
with: | |
python-version: 3.9 | |
- name: Pre-Install dependencies | |
run: | | |
gfortran --version | |
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; | |
# wget https://repo.anaconda.com/archive/Anaconda3-2022.10-Linux-x86_64.sh -O miniconda.sh; | |
bash miniconda.sh -b -p $HOME/miniconda | |
export PATH="$HOME/miniconda/bin:$PATH" | |
hash -r | |
conda config --set always_yes yes --set changeps1 no | |
# conda config --append channels conda-forge | |
conda update --name base conda | |
conda list --name base conda | |
conda init bash | |
hash -r | |
export QT_QPA_PLATFORM='offscreen' | |
sudo apt install libeigen3-dev | |
conda env create -f utils/environment_new.yml | |
conda init bash | |
source activate sharpy | |
git submodule init | |
git submodule update | |
git fetch --tags -f | |
mkdir build && cd build | |
cmake .. && make install -j 4 && cd .. | |
pip install . | |
pip install coverage | |
coverage run -m unittest discover | |
coverage json | |
- name: Upload Coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
verbose: true |