-
Notifications
You must be signed in to change notification settings - Fork 1
75 lines (61 loc) · 1.72 KB
/
pull_request.yml
File metadata and controls
75 lines (61 loc) · 1.72 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Pull request
on:
pull_request:
types:
- edited
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.9.0
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r ./requirements/others.txt
- name: Update documentation
run: |
pdoc -f --html -o docs src/signals_notebook
- name: Move generated files
run: |
mv docs/signals_notebook/* docs
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
add: 'docs'
tests:
needs: build
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest ]
python-version: [ "3.9.0", "3.10.0" ]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r ./requirements/tests.txt
- name: Test
run: |
pytest -v tests --junitxml=test-reports/report.xml
- name: Lint code
run: |
pip install -r ./requirements/lint.txt
flake8 .
- name: Static types checking
run: |
pip install -r ./requirements/mypy.txt
cd src
mypy .