-
Notifications
You must be signed in to change notification settings - Fork 11
53 lines (42 loc) · 1.24 KB
/
ci.yaml
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
46
47
48
49
50
51
52
53
name: ci
on: [push, pull_request]
jobs:
ci:
strategy:
matrix:
os: [ubuntu-latest]
python: ["3.10"]
# Set up operating system
runs-on: ${{ matrix.os }}
# Define job steps
steps:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Check-out repository
uses: actions/checkout@v2
- name: Install packages
run: pip install -r requirements.txt
- name: Install multidim package
run: pip install "."
- name: Test with pytest
run: python -m pytest tests --doctest-modules --cov=multidim --cov-report=xml
- name: Test with mypy
run: mypy src
- name: Test notebooks
run: |
pytest --nbmake src/multidim/notebooks
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./coverage/reports/
env_vars: OS,PYTHON
fail_ci_if_error: true
files: ./coverage.xml
flags: unittests
name: codecov-umbrella
verbose: true
- name: Build documentation
run: make html --directory docs/