-
Notifications
You must be signed in to change notification settings - Fork 22
45 lines (42 loc) · 1.2 KB
/
actions.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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/