Version 0.13.0 #186
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: skdh | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.9, '3.10'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' | |
cache-dependency-path: requirements.txt | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
# install the listed requirements | |
pip install -r gh_actions_requirements.txt | |
# install testing requirements | |
pip install -r test_requirements.txt | |
# if macOS install libomp | |
# if [ "$RUNNER_OS" == "macOS" ]; then | |
# HOMEBREW_NO_AUTO_UPDATE=1 brew install libomp | |
# fi | |
shell: bash | |
- name: Install skdh | |
run: | | |
# if macOS, make sure to set the environment variables so that it can find gfortran-9 | |
# if [ "$RUNNER_OS" == "macOS" ]; then | |
# export F90=gfortran-9 | |
# fi | |
# install scikit-dh | |
pip install . | |
shell: bash | |
- name: Test with pytest | |
run: | | |
pytest test/ |