add a test for pytorch #1
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
name: Test the python installation | |
on: [push] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ["3.12"] | |
include: | |
- os: ubuntu-latest | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
env: | |
NETRC_FILE: ${{ secrets.NETRC_FILE }} | |
NNPDF_SSH_KEY: ${{ secrets.NNPDF_SSH_KEY }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install nnpdf without LHAPDF | |
shell: bash -l {0} | |
run: | | |
pip install .[nolha,torch] | |
- name: Test we can run one runcard | |
shell: bash -l {0} | |
run: | | |
cd n3fit/runcards/examples | |
n3fit Basic_runcard.yml 4 |