-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 1.1 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
38
39
40
name: pytest
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 3
matrix:
python-version: [3.8, 3.9]
steps:
- uses: actions/checkout@v1
- name: Setup Conda
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
auto-update-conda: true
- name: Install dependencies and package
shell: bash --login {0}
run: |
conda info
python -m pip install --upgrade pip
pip install .[tf-cpu]
# Install LHAPDF
conda install -y lhapdf -c https://packages.nnpdf.science/conda
# Download and install a PDF set to ensure that the environment paths are working
wget http://pcteserver.mi.infn.it/~nnpdf/nnpdf31/NNPDF31_nnlo_as_0118.tar.gz
mkdir -p pdfsets
tar xvfz NNPDF31_nnlo_as_0118.tar.gz
mv NNPDF31_nnlo_as_0118 pdfsets/
- name: Test with pytest
shell: bash --login {0}
run: |
# Download the PDF set
export PDFFLOW_DATA_PATH="pdfsets"
pip install pytest
pytest