-
Notifications
You must be signed in to change notification settings - Fork 323
58 lines (55 loc) · 1.5 KB
/
push_pr.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
46
47
48
49
50
51
52
53
54
55
56
57
58
name: push and pull request testing
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
strategy:
max-parallel: 8
fail-fast: false
matrix:
python-version: [3.7, 3.8]
platform: [ubuntu-latest, macos-12]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
- name: Pip upgrade
run: python -m pip install --upgrade pip
- name: Sockeye requirements
run: pip install -r requirements/requirements.txt
- name: Faiss requirements
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
pip install -r requirements/requirements.faiss-cpu.txt
fi
shell: bash
- name: Development requirements
run: pip install -r requirements/requirements.dev.txt
- name: Unit tests
run: |
pytest --version
pytest
- name: Pylint
run: |
pylint --version
pylint --rcfile=.pylintrc sockeye
pylint --rcfile=.pylintrc test --disable=E1102
- name: MyPy
run: |
mypy --version
mypy --ignore-missing-imports --follow-imports=silent @typechecked-files --no-strict-optional
- name: Check manifest
run: check-manifest --ignore sockeye/git_version.py
- name: System tests
run: |
pytest test/system