dont include ev_op_iterations in the user given config when preparing… #5494
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A single CI script with github workflow to test NNPDF, and upload the conda package and documentation | |
name: Test conda package | |
on: [push] | |
concurrency: | |
group: ${{ github.head_ref || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-14] | |
python-version: ["3.12"] # Test only the latest python in all system | |
include: | |
- os: ubuntu-latest # Test also the oldest python supported in ubuntu | |
python-version: "3.9" | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
env: | |
NETRC_FILE: ${{ secrets.NETRC_FILE }} | |
NNPDF_SSH_KEY: ${{ secrets.NNPDF_SSH_KEY }} | |
PYTHONHASHSEED: "0" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-tags: true | |
fetch-depth: 0 | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
use-mamba: true | |
channels: https://packages.nnpdf.science/public,conda-forge | |
show-channel-urls: true | |
auto-update-conda: true | |
activate-environment: test | |
- name: Setup conda | |
shell: bash -l {0} | |
run: | | |
echo "$NETRC_FILE" | base64 --decode > ~/.netrc | |
conda install conda-build --yes | |
- name: Build recipe | |
shell: bash -l {0} | |
run: | | |
conda build -q conda-recipe | |
- name: Upload noarch conda package to NNPDF server | |
if: ${{ (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) && startsWith(matrix.os, 'ubuntu') && matrix.python-version == '3.9' }} | |
shell: bash -l {0} | |
run: | | |
KEY=$( mktemp ) | |
echo "$NNPDF_SSH_KEY" | base64 --decode > "$KEY" | |
scp -i "$KEY" -o StrictHostKeyChecking=no\ | |
$CONDA_PREFIX/conda-bld/noarch/*.tar.bz2 \ | |
dummy@packages.nnpdf.science:~/packages/conda/noarch | |
- name: Build and upload sphinx documentation to NNPDF server | |
if: startsWith(matrix.os, 'ubuntu') && github.ref == 'refs/heads/master' && matrix.python-version == '3.9' | |
shell: bash -l {0} | |
run: | | |
KEY=$( mktemp ) | |
echo "$NNPDF_SSH_KEY" | base64 --decode > "$KEY" | |
conda install nnpdf --yes | |
cd doc/sphinx | |
make html | |
scp -r -i "$KEY" -o StrictHostKeyChecking=no\ | |
build/html/* \ | |
dummy@packages.nnpdf.science:~/sphinx-docs/ |