-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1989 from NNPDF/enable_312_conda
Enable python 3.12
- Loading branch information
Showing
8 changed files
with
45 additions
and
67 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
python-version: ["3.9", "3.11"] # only test for the outer values for the range we support to prevent the cluster from refusing connections due to too many requests | ||
python-version: ["3.9", "3.12"] # only test for the outer values for the range we support to prevent the cluster from refusing connections due to too many requests | ||
fail-fast: false | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
|
@@ -28,31 +28,21 @@ jobs: | |
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 config --remove channels defaults | ||
conda config --append channels conda-forge | ||
conda config --prepend channels https://packages.nnpdf.science/public | ||
conda config --set show_channel_urls true | ||
- name: Build recipe and run tests on linux | ||
if: startsWith(matrix.os, 'ubuntu') | ||
conda install conda-build --yes | ||
- name: Build recipe | ||
shell: bash -l {0} | ||
run: | | ||
conda install boa --yes | ||
conda mambabuild -q conda-recipe | ||
- name: Build recipe and run test on Mac OS | ||
if: startsWith(matrix.os, 'macOS') | ||
shell: bash -l {0} | ||
run: | | ||
conda config --prepend channels defaults | ||
conda install boa conda-build==3.28 --yes | ||
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.11' | ||
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 ) | ||
|
@@ -61,7 +51,7 @@ jobs: | |
$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' && matrix.python-version == '3.11' | ||
if: startsWith(matrix.os, 'ubuntu') && github.ref == 'refs/heads/master' && matrix.python-version == '3.9' | ||
shell: bash -l {0} | ||
run: | | ||
KEY=$( mktemp ) | ||
|
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
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
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
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
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
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