-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (33 loc) · 1.07 KB
/
pytest.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
name: pytest
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 3
matrix:
python-version: [3.8]
steps:
- uses: actions/[email protected]
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies and package
run: |
python -m pip install --upgrade pip
pip install .
- name: Lint with pylint
run: |
pip install pylint
# Error out only in actual errors
# TODO some of the errors here are actual minor style problems that needs to be solved *eventually*
# TODO: fix once pdfflow is updated
pylint python_package/*/*.py -E -d E1123,E1120,E0401,E402,E0102
pylint python_package/*/*.py --exit-zero
- name: Test with pytest
run: |
pip install pytest pdfflow
wget http://pcteserver.mi.infn.it/~nnpdf/nnpdf31/NNPDF31_nnlo_as_0118.tar.gz
tar xvfz NNPDF31_nnlo_as_0118.tar.gz
PDFDIR=${PWD} pytest