Skip to content

Commit 3d86403

Browse files
committed
test coverage cre3ation
1 parent d7837d8 commit 3d86403

File tree

1 file changed

+3
-74
lines changed

1 file changed

+3
-74
lines changed

.github/workflows/all_tests_nnpdf.yml

Lines changed: 3 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,6 @@ env:
88
NETRC_FILE: ${{ secrets.NETRC_FILE }}
99

1010
jobs:
11-
run_package_tests:
12-
strategy:
13-
matrix:
14-
os: [ubuntu-latest, macos-14]
15-
python-version: ["3.9", "3.12"]
16-
include:
17-
- os: ubuntu-latest
18-
CONDA_OS: linux-64
19-
fail-fast: false
20-
runs-on: ${{ matrix.os }}
21-
steps:
22-
- uses: actions/checkout@v4
23-
- uses: ./.github/actions/install_conda_pip
24-
with:
25-
python-version: ${{ matrix.python-version }}
26-
- name: Test n3fit and validphys
27-
shell: bash -l {0}
28-
run: |
29-
pytest --cov=${PWD} --cov-config=pyproject.toml --mpl --pyargs validphys n3fit --mpl-default-tolerance 18
30-
- name: Keep coverage file
31-
if: startsWith(matrix.python-version, '3.12')
32-
uses: actions/upload-artifact@v4
33-
with:
34-
name: coverage-package-${{ matrix.os }}
35-
path: .coverage
36-
37-
3811
regression_tests:
3912
runs-on: ubuntu-latest
4013
steps:
@@ -44,60 +17,16 @@ jobs:
4417
shell: bash -l {0}
4518
run: |
4619
pytest --cov=${PWD} --cov-config=pyproject.toml extra_tests/regression_checks.py
20+
coverage combine
21+
ls -lisah
4722
- name: Keep coverage file
4823
uses: actions/upload-artifact@v4
4924
with:
5025
name: coverage-regression
5126
path: .coverage
5227

53-
conda_tests:
54-
strategy:
55-
matrix:
56-
os: [ubuntu-latest, macos-14]
57-
fail-fast: false
58-
runs-on: ${{ matrix.os }}
59-
steps:
60-
- uses: actions/checkout@v4
61-
with:
62-
fetch-tags: true
63-
fetch-depth: 0
64-
- uses: ./.github/actions/prepare_environment
65-
with:
66-
python-version: "3.12"
67-
- name: Build recipe
68-
shell: bash -l {0}
69-
run: |
70-
conda install conda-build --yes
71-
conda build -q conda-recipe --package-format=1
72-
- name: Keep conda package as artifact
73-
if: ${{ !cancelled() }}
74-
uses: actions/upload-artifact@v4
75-
with:
76-
path: ${{ env.CONDA_PREFIX }}/conda-bld/noarch/*.tar.bz2
77-
78-
run_pytorch:
79-
runs-on: ubuntu-latest
80-
env:
81-
KERAS_BACKEND: torch
82-
steps:
83-
- uses: actions/checkout@v4
84-
- uses: actions/setup-python@v5
85-
with:
86-
python-version: "3.12"
87-
- name: Install nnpdf without LHAPDF
88-
shell: bash -l {0}
89-
run: |
90-
pip install .[nolha,torch]
91-
# Since there is no LHAPDF in the system, initialize the folder and download pdfsets.index
92-
lhapdf-management update --init
93-
- name: Test we can run one runcard
94-
shell: bash -l {0}
95-
run: |
96-
cd n3fit/runcards/examples
97-
n3fit Basic_runcard.yml 4
98-
9928
full_coverage:
100-
needs: [run_package_tests, regression_tests]
29+
needs: [regression_tests]
10130
runs-on: ubuntu-latest
10231
steps:
10332
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)