-
Notifications
You must be signed in to change notification settings - Fork 6
38 lines (32 loc) · 857 Bytes
/
test.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
name: test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.12
uses: actions/setup-python@v2
with:
python-version: "3.12"
- name: Install symd
run: |
sudo apt-get install libgsl-dev cmake
mkdir build && cd build && cmake .. && make && sudo make install
- name: Install dependencies
working-directory: python
run: |
python -m pip install --upgrade pip
if [ -f dev-requirements.txt ]; then pip install -r dev-requirements.txt; fi
- name: Install
working-directory: python
run: |
pip install . && pip install -r docs/requirements.txt
- name: Run tests
working-directory: python
run: |
pytest