Skip to content

Regenerate plots with linux machine #6470

Regenerate plots with linux machine

Regenerate plots with linux machine #6470

Workflow file for this run

# 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"]
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') }}
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 \
[email protected]:~/packages/conda/noarch
- name: Build and upload sphinx documentation to NNPDF server
if: startsWith(matrix.os, 'ubuntu') && github.ref == 'refs/heads/master'
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/* \
[email protected]:~/sphinx-docs/