forked from salilab/IHMValidation
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (36 loc) · 1.05 KB
/
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
39
40
41
42
43
44
# only pytest tests
name: test
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [3.8]
include:
- os: macos-latest
python-version: 3.8
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest-cov pytest pytest-flake8
pip install -r dependencies.txt
- name: Validate version
run: python --version
- name: Run simple python code
run: python -c 'import math; print(math.factorial(5))'
- name: Test with pytest
run: |
python -m pytest --rootdir tests
- name: Test with flake8
run: |
pip install flake8
flake8 master/pyext/src/validation --ignore=E501,W504,W503,E226,F401,E241