-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 1004 Bytes
/
python_ci.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
name: CI
on:
push:
branches: [ development ]
pull_request:
branches: [ main, development ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ windows-latest, macOS-latest, ubuntu-latest ]
python: [ "3.8", "3.9", "3.10", "3.11" ]
steps:
- uses: actions/checkout@v2
- name: Initialize Python ${{ matrix.python }}
uses: actions/setup-python@v4.3.1
with:
python-version: ${{ matrix.python }}
- name: Install hpo-toolkit
run: |
python3 -m pip install .[test,docs]
- name: Run tests
run: |
python3 -m unittest discover -s src -p _test*.py
python3 -m unittest discover -s tests
- name: Run documentation tests
run: |
cd docs
sphinx-apidoc --separate --module-first -d 2 -H "API reference" -o apidocs ../src/hpotk
make doctest